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

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

Open
6293 opened this issue May 9, 2023 · 0 comments
Open

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

6293 opened this issue May 9, 2023 · 0 comments
Labels
help wanted Extra attention is needed jsonschema-feature Missing fundamental support for a particular JSON schema feature

Comments

@6293
Copy link
Contributor

6293 commented May 9, 2023

#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"]
                }
            }
        }};
@untitaker untitaker added jsonschema-feature Missing fundamental support for a particular JSON schema feature help wanted Extra attention is needed labels May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed jsonschema-feature Missing fundamental support for a particular JSON schema feature
Projects
None yet
Development

No branches or pull requests

2 participants