Enum JsonSchemaConfig.MapStrategy

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      PATTERN_PROPERTIES
      Converts to a schema that uses "patternProperties".
      PROPERTY_NAMES
      Converts to a schema that uses a combination of "propertyNames" and "additionalProperties".
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      static JsonSchemaConfig.MapStrategy valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static JsonSchemaConfig.MapStrategy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • PROPERTY_NAMES

        public static final JsonSchemaConfig.MapStrategy PROPERTY_NAMES
        Converts to a schema that uses a combination of "propertyNames" and "additionalProperties".

        This is the default setting used if not configured.

      • PATTERN_PROPERTIES

        public static final JsonSchemaConfig.MapStrategy PATTERN_PROPERTIES
        Converts to a schema that uses "patternProperties". If a map's key member or its target does not have a pattern trait, a default indicating one or more of any character (".+") is applied.
    • Method Detail

      • values

        public static JsonSchemaConfig.MapStrategy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JsonSchemaConfig.MapStrategy c : JsonSchemaConfig.MapStrategy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JsonSchemaConfig.MapStrategy valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null