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

Add support for enum member references to emitter framework #2137

Merged
merged 3 commits into from
Jun 30, 2023

Conversation

bterlson
Copy link
Member

The emitter framework did not handle enum member references. This PR adds support for them in the emitter framework (following a similar pattern to model references). It also adds support for them in the JSON Schema emitter, which simply emits the value inline (rather than doing any magic with $ref + json paths, which seems overkill).

Fixes #2135.

@bterlson bterlson changed the title Add support for enum member references Add support for enum member references to emitter framework Jun 29, 2023
@bterlson
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@bterlson bterlson merged commit 799cb6a into microsoft:main Jun 30, 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.

JsonSchema emitter crashes when user declares an enum
2 participants