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

Make it possible to get and set superseding schema info #129

Closed
spenes opened this issue Mar 28, 2023 · 0 comments
Closed

Make it possible to get and set superseding schema info #129

spenes opened this issue Mar 28, 2023 · 0 comments

Comments

@spenes
Copy link
Contributor

spenes commented Mar 28, 2023

We are adding a new feature to Enrich to make it possible supersede schemas. This feature uses the $supersededBy field in the Iglu schema. It should be possible to set this field while uploading new schema to Iglu Server.

Superseding info can be submit either via $supersededBy field or $supersedes field. Let's explain these with examples:

 "$supersededBy": "1-0-8"
  "self": {
          "vendor": "com.acme",
          "name": "test",
          "format": "jsonschema",
          "version": "1-0-7"
  }

In this example, 1-0-7 version is superseded by 1-0-8.

  "$supersedes":[ "1-0-4", "1-0-5", "1-0-6"]
  "self": {
          "vendor": "com.acme",
          "name": "test",
          "format": "jsonschema",
          "version": "1-0-7"
  }

In this example, 1-0-4, 1-0-5 and 1-0-6 are superseded by 1-0-7.

When a superseded schema schema fetched, irrespective of how that superseding info is submitted, it will contain $supersededBy field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant