public final class V11TypeMigrator extends java.lang.Object implements SwaggerMigrator
Several Swagger objects have the possibility of a data type; as such, JSON Schema validation currently cannot really limit the object members present, not without the "strictProperties" and "merge" proposals of draft v5.
The schema validation performed is therefore extremely simple: we only
check that a dataType field is present, check that its value is one
of the allowed values, and patch the node.
If dataType is not a known primitive, it is considered to be a
v1.2 $ref.
| Constructor and Description |
|---|
V11TypeMigrator() |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
migrate(com.fasterxml.jackson.databind.JsonNode input)
Migrate a JSON input
|
@Nonnull
public com.fasterxml.jackson.databind.JsonNode migrate(@Nonnull
com.fasterxml.jackson.databind.JsonNode input)
throws SwaggerMigrationException
SwaggerMigratormigrate in interface SwaggerMigratorinput - the input nodeSwaggerMigrationException - migration failedCopyright © 2018. All Rights Reserved.