Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Cube's YAML syntax #60

Open
igorlukanin opened this issue Feb 17, 2023 · 3 comments
Open

Support Cube's YAML syntax #60

igorlukanin opened this issue Feb 17, 2023 · 3 comments

Comments

@igorlukanin
Copy link

igorlukanin commented Feb 17, 2023

Great project, kudos! 🙏

As far as I see, Droughty generates JavaScript-based Cube data models.

It might be more friendly to Droughty's end users (e.g., data engineers) if it's also able to generate Cube data models using new YAML syntax (https://cube.dev/blog/introducing-cube-support-for-yaml-data-modeling, https://cube.dev/docs/schema/fundamentals/working-with-yaml).

It would be great to have both options available since, as of today, YAML is still not on par with JavaScript, feature-wise. For instance, dynamic data models are only possible with JavaScript.

@LewisCharlesBaker
Copy link
Collaborator

@igorlukanin - I'll put this on the roadmap, I already have a YAML parser in use so this shouldn't take too long

@darapuk
Copy link

darapuk commented Mar 15, 2023

+1 to YAML being way easier to work with from a programatic code generation standpoint.

We converted the yaml config from cube into dataclasses, and write out the dataclass with yaml dumper. Way easier to write & read the code.

We're doing something similar at our company which is how I stumbled into this project. Very interested in seeing how this project evolves!

@LewisCharlesBaker
Copy link
Collaborator

Hi @darapuk - Thanks for adding to this. This is in my roadmap, I'll update here once released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants