Skip to content

objects inside anyOf v.s. multiple types inside object #22

@6293

Description

@6293

#20 (comment)


This is a completely unrealistic schema (I hope), but I'm just curious, do you think it is possible to handle this case and produce no diff?

        let lhs = json! {{
            "anyOf": [
                {"properties": {"foo": {"type": "integer"}}},
                {"properties": {"foo": {"type": "string"}}}
            ]
        }};
        let rhs = json! {{
            "properties": {
                "foo": {
                    "type": ["integer", "string"]
                }
            }
        }};

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededjsonschema-featureMissing fundamental support for a particular JSON schema feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions