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 enums defaults generation when we extending from a parent class #86

Closed
wants to merge 5 commits into from

Conversation

spinillos
Copy link
Member

Fixes enums case for: https://github.com/grafana/schematization-and-as-code-project/issues/56

We can set a default enum value to a field from a parent class using:

common.LegendDisplayMode & (*"list" | _|_)

The issue was using TopKind (_) but I couldn't make it work with that :(

@spinillos spinillos requested a review from sdboyer March 14, 2023 17:29
@spinillos spinillos marked this pull request as draft March 15, 2023 09:31
@spinillos
Copy link
Member Author

Closing in favor of: #87

@spinillos spinillos closed this Mar 15, 2023
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

1 participant