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

JSON schema generator: Support enums #321

Closed
adrianholovaty opened this issue Dec 21, 2023 · 1 comment
Closed

JSON schema generator: Support enums #321

adrianholovaty opened this issue Dec 21, 2023 · 1 comment

Comments

@adrianholovaty
Copy link
Contributor

The automatically generated JSON Schema would be better if it included the specific enum values for any type that's an enum. See this comment for some context and an example:

#319 (comment)

@adrianholovaty
Copy link
Contributor Author

This is now done. I broke it up into a few commits:

  • 07ff9a7 — the docs system now has the concept of allowed values for a specific object type.
  • 20fd5b0 — the system that auto-generates our JSON Schema now includes enums when available.
  • dfd0aa3 — populated the actual enum data for various objects in the spec.

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

1 participant