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

Any type (or Raw field) uses type as string, and when used in Dict, adds str, null as types in additional properties #166

Open
ryan-lane opened this issue Apr 21, 2022 · 0 comments

Comments

@ryan-lane
Copy link

When using Any field, the type is set to string, and when used in a Dict, it sets the types in the additional properties to string, null. This leads to an inconsistency between marshmallow-dataclass and marshmallow-schema, where:

{"myfield": {"sub-dict": ["a", "b"]}}

Will be valid via marshmallow, but will not validate using the jsonschema.

I'm not fully sure what the type should be when used directly for fields, but in additionalProperties, if the type is Any, it shouldn't include the types field at all.

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

No branches or pull requests

1 participant