Open
Description
Currently the test_canonicalises_to_equivalent_fixpoint
test fails on assert cc == canonicalish(cc)
with the following schema:
schema = {'not': {'anyOf': [{'type': 'number'}, {'if': {'type': 'null'}, 'then': {'type': 'null'}, 'else': {}}]}}
As far as I see, calling canonicalise
second time should not transform the schema again. But here is schema after the first call:
{
"not": {"anyOf": [{"const": None}, {"not": {"const": None}}]},
"type": ["null", "boolean", "string", "array", "object"],
}
and after the second call:
{
"not": {
"anyOf": [
{"const": None},
{
"type": ["null", "boolean", "string", "array", "object"],
"not": {"const": None},
},
]
},
"type": ["null", "boolean", "string", "array", "object"],
}
git bisect
gave me this commit - afc292b
Should the second call leave the input schema as is?
Metadata
Metadata
Assignees
Labels
No labels