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

Implement discriminator based generation for schema examples #1450

Merged
merged 6 commits into from
Nov 26, 2024

Conversation

StarKhan6368
Copy link
Collaborator

@StarKhan6368 StarKhan6368 commented Nov 26, 2024

What: Implement discriminator based generation for schema examples

Why: This enables the generation of multiple schema-based examples if a discriminator is present.

Checklist:

- Generate all possible discriminator values for a schema based example
- The list has size of only one and response value validation
  is enabled
- Delete original schema file when multiple are generated
  based on the discriminator
- Display missing discriminator schemas when a discriminator is present.
- Improve schema generation and validation processes.
@joelrosario joelrosario merged commit 16da472 into main Nov 26, 2024
2 checks passed
@joelrosario joelrosario deleted the disc-schema-ex-gen branch November 26, 2024 13:41
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.

2 participants