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 propertyNames field in maps #361

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

daimond113
Copy link

Adds the propertyNames field to map schemas and a transformer to remove the field. This is useful in OpenAPI 3.0 which doesn't support it.

This is a breaking change since the key type of maps must now also implement JsonSchema.

Unfortunately, I've not been able to get the FlattenValue test working - it's probably because the additional field gets deserialized in only some cases. For this reason, this PR is a draft. I'll try to tinker with it later, but if I could get some advice on resolving this problem, I'd be happy to fix the test.

Fixes #235.

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.

Map schemas do not specify the key type
1 participant