Skip to content

Releases: dragonwasrobot/json_schema

Default keyword support and bug fixes

26 Mar 14:30
Compare
Choose a tag to compare

Added

  • Now supports the default keyword for each schema node type.
  • Now supports boolean values for the additionalProperties keyword.

Changed

  • When defining an anonymous type using the items keyword, it is now named :anonymous rather than items in the parsed document.

Fixed

  • Fixed a bug where the parser would throw an unexpected error if the items property contained a primitive type.

Adds support for :anonymous nodes

09 May 22:09
Compare
Choose a tag to compare

Added

  • Better error description for invalid union types.

Changed

  • Replaced auto-generated schema names like zero and one with :anonymous making it easier for a consuming project to decide what to do when a subschema does not have an explicit name. (#97)
  • Replaced stringly-typed type properties for several schema types to instead use specific atoms corresponding to the set of valid JSON value type.

Fixed

  • Bumped the elixir version and all of the project dependencies.

Const keyword and cleanup

30 Oct 19:47
Compare
Choose a tag to compare

Added

  • Support for the generic description keyword (#14).
  • support for the const keyword (#21).

Fixed

  • Various bugs related to parsing nested root object (#35).

More object properties and refactored identifiers

24 Mar 18:31
Compare
Choose a tag to compare

Added

  • Support for parsing the following JSON schema types:
    • additionalProperties, and
    • patternProperties.

Changed

  • Replaced the TypePath type wih the URI type when specifying local paths in
    a JSON schema document.

Initial release

27 Jul 01:38
71b5a2f
Compare
Choose a tag to compare

NOTE: This initial release is a fork of https://github.com/dragonwasrobot/json-schema-to-elm, and so this version contains all existing changes made in that project. As a result, the parser and inspection logic found in this first version reflects which parts of the JSON Schema specification was needed in the original project.

Added

  • Support for parsing the following JSON schema types:

    • allOf,
    • anyOf,
    • array (keyword items when value is a object),
    • enum,
    • object, (keyword properties),
    • oneOf,
    • primitive (keyword type except for object and array),
    • tuple (keyword items when value is a list of objects), and
    • union (keyword type when value is a list of strings).
  • Parsing of the basic properties of a JSON schema document:

    • schema,
    • $id,
    • $ref,
    • title,
    • description,
    • "definitions", and
    • required.
  • Can resolve references, using $ref, across different JSON schema files as long as they are parsed together.

  • Prints human friendly error messages.