Skip to content

Concerto v0.82.10

Compare
Choose a tag to compare
@dselman dselman released this 23 Sep 12:25

🗺️ This release includes a rewrite of the JSONSchemaVisitor class, used to convert a Concerto model to a JSON Schema.

It addresses the following:

  • Bug fix for Concerto models that contain recursive relationships #206
  • Concerto decorators are added to the JSON Schema #207
  • Concerto Integer, Double and Long fields now have their range validation expressions added to the JSON Schema
  • Concerto String fields now that their regex validation expressions added to the JSON Schema
  • Enforce correct $class names in the JSON Schema

By default the new code generates JSON Schema definitions for all types in a ModelManager and adds them to a top-level definitions attribute, and uses $ref to reference them. To expand non-recursive types inline you can use the inlineTypes parameter.

Use the rootType parameter to optionally expand a single class definition into the root of the generated schema document.