Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Mention Draft 2019-09 Support in from-Java-code Generator #322

Merged

Conversation

CarstenWickner
Copy link
Contributor

As of its version 4.6.0, the Java jsonschema-generator does support Draft 2019-09 as well as Draft 7.
Added support was achieved through the following three changes:

  • Including "https://json-schema.org/draft/2019-09/schema" as "$schema"
  • Using "$defs" instead of "definitions"
  • Allow additional attributes besides "$ref" in a sub-schema (thereby cutting down on the number of necessary "allOf" elements

@netlify
Copy link

netlify bot commented Mar 15, 2020

Deploy preview for condescending-hopper-c3ed30 ready!

Built with commit fd25648

https://deploy-preview-322--condescending-hopper-c3ed30.netlify.com

@philsturgeon
Copy link
Contributor

Checks out. Thanks @CarstenWickner.

@philsturgeon philsturgeon merged commit 76271d8 into json-schema-org:master Mar 19, 2020
@CarstenWickner CarstenWickner deleted the added-draft-2019-09-support branch March 19, 2020 15:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants