Class SwaggerV20Library
java.lang.Object
com.atlassian.oai.validator.schema.SwaggerV20Library
Library that extends the JSON Schema v4 and adds the additional keywords introduced by the
OpenAPI / Swagger v2.0 specification.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMessage bundle loader that appends messages for the Swagger V20 extensions to the standard JSON Schema syntax bundle.static classMessage bundle loader that appends messages for the Swagger V20 extensions to the standard JSON Schema validation message bundle. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic com.github.fge.jsonschema.library.Libraryget()static com.github.fge.jsonschema.main.JsonSchemaFactorystatic com.github.fge.jsonschema.main.JsonSchemaFactoryschemaFactory(com.github.fge.jsonschema.core.report.LogLevel logLevel, com.github.fge.jsonschema.core.report.LogLevel exceptionThreshold)
-
Field Details
-
OAI_V2_METASCHEMA_URI
- See Also:
-
-
Method Details
-
get
public static com.github.fge.jsonschema.library.Library get() -
schemaFactory
public static com.github.fge.jsonschema.main.JsonSchemaFactory schemaFactory()- Returns:
- A
JsonSchemaFactoryinstance configured with the OpenAPI / Swagger V20 metaschema library suitable for use in validating OpenAPI / Swagger documents
-
schemaFactory
public static com.github.fge.jsonschema.main.JsonSchemaFactory schemaFactory(com.github.fge.jsonschema.core.report.LogLevel logLevel, com.github.fge.jsonschema.core.report.LogLevel exceptionThreshold) - Parameters:
logLevel- log levelexceptionThreshold- exception threshold- Returns:
- A
JsonSchemaFactoryinstance configured with the OpenAPI / Swagger V20 metaschema library suitable for use in validating OpenAPI / Swagger documents
-