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

Fix extends generation for TS files #162

Merged
merged 1 commit into from
May 23, 2023
Merged

Fix extends generation for TS files #162

merged 1 commit into from
May 23, 2023

Conversation

spinillos
Copy link
Member

It helps to unblock: grafana/grafana#68034

Looks like that passing _#schema definition makes a complex cue struct that Cuetsy is unable to iterate correctly and we didn't find a proper solution in Cuetsy for that.

So instead of passing this _#schema, we are passing its inner values (schema and _join) and merge them after that to make it works.

@spinillos spinillos requested a review from sdboyer May 18, 2023 15:49
@sdboyer
Copy link
Contributor

sdboyer commented May 23, 2023

Amazing! looks like this gets us to the desired output with Grafana kinds.

This change definitely indicates the need for a rewrite of cuetsy so that we can support something like the NameFunc exposed by CUE's openapi encoder. But having this means that that rewrite is no longer in the critical path. 🎉 🎉

@sdboyer sdboyer merged commit db9596a into main May 23, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants