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

how to keep the original order of the yaml keys in the generated json schema? #102

Closed
michael2008 opened this issue Dec 28, 2024 · 1 comment

Comments

@michael2008
Copy link

The problem is that the generated json schema appears to have different key order from the orginal yaml.
When I input the json schema to UI lib such as https://rjsf-team.github.io/react-jsonschema-form/, I want to keep the original key order.
Is it because the golang json lib does not preserve order?
Can you please fix this?

@dadav
Copy link
Owner

dadav commented Dec 28, 2024

@dadav dadav closed this as completed Dec 28, 2024
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

2 participants