Class Specification

java.lang.Object
com.networknt.schema.Specification

public class Specification extends Object
The version of the JSON Schema specification that defines the standard dialects.
  • Constructor Details

    • Specification

      public Specification()
  • Method Details

    • getDialect

      public static Dialect getDialect(SpecificationVersion version)
      Gets the standard dialect given the specification version.

      This should only be used if the standard dialect is required, otherwise the dialect should be retrieved from the dialect registry.

      Parameters:
      version - the schema specification version
      Returns:
      the dialect or null if not found
    • getDialect

      public static Dialect getDialect(String dialectId)
      Gets the standard dialect given the dialect id.

      This should only be used if the standard dialect is required, otherwise the dialect should be retrieved from the dialect registry.

      Parameters:
      dialectId - the schema specification version
      Returns:
      the dialect or null if not found