Skip to content

Better support for anyOf #16

Closed
Closed

Description

@untitaker

Any nontrivial construction of anyOf can confuse json-schema-diff in printing erronenous diffs. For example, those two schemas are identical, but produce diffs:

{"anyOf": [{"type": "string"}, {"type": "integer"}]}
{"type": ["string", "integer"]}

Activity

  1. added
    jsonschema-feature
    on May 5, 2023
  2. untitaker commented on May 9, 2023

    @untitaker
    MemberAuthor

    thank you for working on this @6293. May I ask if you have a usecase for json-schema-diff or are just implementing those features for fun?

  3. 6293 commented on May 9, 2023

    @6293
    Contributor

    Just for fun. If you don't mind I will keep adding support for other json schema keywords

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    jsonschema-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions