Class JsonSchemaConverter

java.lang.Object
it.uniroma2.art.semanticturkey.properties.json.schema.JsonSchemaConverter

public class JsonSchemaConverter extends Object
Converters a JSON schema to a DynamicSTProperties. This converter supports the following keywords:
  • type
  • enum
  • properties
  • required
  • minLength
  • maxLength
  • pattern
  • minimum
  • maximum
  • items
  • uniqueItems
  • title
  • description
  • default

The underlying JSON Schema parser is updated to draft v7; however, we encourage to only use keywords that didn't have backward incompatible changes into subsequent specs.

The underlying library looses the order of property declarations: we fixed this problem by joining with the represented obtained through Jackson. Another limitation of the library is the lack of support for default values, which we implemented separately.

Author:
Manuel Fiorelli