Package com.networknt.schema
Class Specification
java.lang.Object
com.networknt.schema.Specification
The version of the JSON Schema specification that defines the standard
dialects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DialectgetDialect(SpecificationVersion version) Gets the standard dialect given the specification version.static DialectgetDialect(String dialectId) Gets the standard dialect given the dialect id.
-
Constructor Details
-
Specification
public Specification()
-
-
Method Details
-
getDialect
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
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
-