public interface OpenApiSchemaValidator
| Modifier and Type | Method and Description |
|---|---|
default boolean |
append(List<Violation> violations,
com.github.fge.jsonschema.core.report.ProcessingMessage message,
Optional<String> requiredLevel)
Append violations with level filtering.
|
com.github.fge.jsonschema.main.JsonSchema |
getSchema()
Provide the json schema for validation.
|
static com.github.fge.jsonschema.main.JsonSchema |
loadSchema(String path,
String uri) |
default void |
validateJSonSchema(com.fasterxml.jackson.databind.JsonNode specRoot,
OpenApiModelInfo.Builder modelBuilder)
Validates given specification Json and add validation errors and warnings to given open api info model builder.
|
com.github.fge.jsonschema.main.JsonSchema getSchema()
default void validateJSonSchema(com.fasterxml.jackson.databind.JsonNode specRoot,
OpenApiModelInfo.Builder modelBuilder)
specRoot - the specification as Json root.modelBuilder - the model builder receiving all validation errors and warnings.default boolean append(List<Violation> violations, com.github.fge.jsonschema.core.report.ProcessingMessage message, Optional<String> requiredLevel)
violations - the list of violations receiving new entries.message - the current processing message.requiredLevel - level of violation message.Copyright © 2016–2021 Red Hat. All rights reserved.