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: Allow dynamic schema in openapi #2543

Merged
merged 3 commits into from
Dec 8, 2023

Conversation

runtologist
Copy link
Member

Openapi just constrains the possible values, but they are always JSON. In case of dynamic schema we do not know anything about the possible values, so we simply remove all constraints.

Openapi just constrains the possible values, but they are
always JSON. In case of dynamic schema we do not know
anything about the possible values, so we simply remove
all constraints.
@codecov-commenter
Copy link

codecov-commenter commented Dec 5, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (2f9ba86) 64.28% compared to head (383ca58) 64.27%.

Files Patch % Lines
...n/scala/zio/http/endpoint/openapi/JsonSchema.scala 0.00% 4 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2543      +/-   ##
==========================================
- Coverage   64.28%   64.27%   -0.01%     
==========================================
  Files         138      138              
  Lines        7979     7980       +1     
  Branches     1488     1474      -14     
==========================================
  Hits         5129     5129              
- Misses       2850     2851       +1     

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

@jdegoes
Copy link
Member

jdegoes commented Dec 7, 2023

@runtologist Good to merge when build is passing. 👍

@runtologist runtologist merged commit 24dcb13 into zio:main Dec 8, 2023
14 checks passed
@runtologist runtologist deleted the feat/openapiDynamicSchema branch December 8, 2023 06:53
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.

3 participants