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

feat: add support for $schema in JSON output #121

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

madpah
Copy link
Collaborator

@madpah madpah commented Jan 6, 2022

Closes: #104

Signed-off-by: Paul Horton phorton@sonatype.com

Signed-off-by: Paul Horton <phorton@sonatype.com>
@madpah madpah added the enhancement New feature or request label Jan 6, 2022
@madpah madpah added this to the 1.0.0 milestone Jan 6, 2022
@madpah madpah requested a review from a team as a code owner January 6, 2022 12:01
@madpah madpah self-assigned this Jan 6, 2022
@@ -37,6 +38,11 @@ def generate(self, force_regeneration: bool = False) -> None:
if self.generated and not force_regeneration:
return

schema_uri: Optional[str] = self._get_schema_uri()
if not schema_uri:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️
that is a great idea of a process
how to indicate that JSON serialization is supported for a specific spec,
and have qualified information about the used JSON schema
at the same time.

@jkowalleck jkowalleck changed the title feat: add support for $schema in JSON output feat: add support for $schema in JSON output Jan 6, 2022
@madpah madpah merged commit b7f7a2d into feat/schema-version-1.4 Jan 6, 2022
@madpah madpah deleted the feat/add-json-schema-id branch January 6, 2022 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants