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

feat: basic schema discriminator support #419

Merged
merged 1 commit into from
Apr 28, 2024
Merged

Conversation

danielgtaylor
Copy link
Owner

Add basic support for the OpenAPI 3.1 discriminator object in schemas. https://spec.openapis.org/oas/v3.1.0#discriminator-object

Fixes #384

Copy link

codecov bot commented Apr 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.72%. Comparing base (da22a6c) to head (33506ff).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #419      +/-   ##
==========================================
+ Coverage   92.71%   92.72%   +0.01%     
==========================================
  Files          21       21              
  Lines        3540     3546       +6     
==========================================
+ Hits         3282     3288       +6     
  Misses        220      220              
  Partials       38       38              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danielgtaylor danielgtaylor merged commit bfa7e53 into main Apr 28, 2024
5 checks passed
@danielgtaylor danielgtaylor deleted the feat-discriminator branch April 28, 2024 03:05
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.

Support Discriminator and DiscriminatorMap
1 participant