Class JsonSchemaConfig


  • public final class JsonSchemaConfig
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static JsonSchemaConfig DEFAULT  
      static java.util.Map<java.lang.String,​java.lang.String> DEFAULT_DATE_FORMAT_MAPPING  
      static JsonSchemaConfig JSON_EDITOR
      Use this configuration if using the JsonSchema to generate HTML5 GUI, eg.
      static JsonSchemaConfig NULLABLE
      This configuration is exactly like the vanilla JSON schema generator, except that "nullables" have been turned on: `useOneOfForOption` and `useOneForNullables` have both been set to `true`.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_DATE_FORMAT_MAPPING

        public static final java.util.Map<java.lang.String,​java.lang.String> DEFAULT_DATE_FORMAT_MAPPING
      • JSON_EDITOR

        public static final JsonSchemaConfig JSON_EDITOR
        Use this configuration if using the JsonSchema to generate HTML5 GUI, eg. by using https://github.com/jdorn/json-editor The following options are enabled:
      • autoGenerateTitleForProperties - If property is named "someName", we will add {"title": "Some Name"}
      • defaultArrayFormat - this will result in a better gui than te default one.
  • Constructor Detail

    • JsonSchemaConfig

      public JsonSchemaConfig()