Open s-knibbs opened 4 years ago
To fix this will require supporting the unevaluatedProperties which was introduced in the latest JSON schema draft.
Initially, I propose to raise an error when inheritance and allow_additional_props=False
are used together and later on add support for the 2019-09 draft with unevaluatedProperties
once that's supported by the validation libraries.
Due to the way that
$allOf
andadditionalProperties
interact in json schema, currently, a schema that validates against nothing will be generated in the following case: