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

Support dictionary-like type (additionalProperties) #178

Merged
merged 8 commits into from
Mar 1, 2024

Conversation

nicvw
Copy link
Contributor

@nicvw nicvw commented Mar 1, 2024

A possible implementation to address Issue 132. This will not add a properties or required field if additionalProperties exists on the base schema. It will still update those fields if they are already present on the base, I feel that is a decent compromise to resolve that issue and not interfere with schemas where all three fields are intentionally present.

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.00%. Comparing base (5469c81) to head (4450fa8).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #178   +/-   ##
=======================================
  Coverage   97.00%   97.00%           
=======================================
  Files          14       14           
  Lines         500      500           
  Branches      115      115           
=======================================
  Hits          485      485           
  Misses         15       15           

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

@exoego
Copy link
Owner

exoego commented Mar 1, 2024

Thanks!

@exoego exoego merged commit a8f2c24 into exoego:master Mar 1, 2024
15 checks passed
@exoego exoego added the enhancement New feature or request label Mar 1, 2024
@exoego exoego changed the title Additional properties override Support dictionary-like type (additionalProperties) Mar 2, 2024
@exoego exoego changed the title Support dictionary-like type (additionalProperties) Support dictionary-like type (additionalProperties) Mar 2, 2024
@exoego exoego changed the title Support dictionary-like type (additionalProperties) Support dictionary-like type (additionalProperties) Mar 2, 2024
@exoego
Copy link
Owner

exoego commented Mar 2, 2024

@nicvw Thanks for your contribution. This was released in v0.13.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants