You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
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.
The text was updated successfully, but these errors were encountered: