public interface SwaggerMigrator
This takes a JsonNode as an input and outputs the transformed
JsonNode.
Note that this interface makes no guarantee as to whether
a new JsonNode is returned, or the input argument is
returned (altered or not). If this distinction is important, please document
it in your implementation(s).
You can either implement this interface directly or use one of the
predefined migrators in SwaggerMigrators.
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
migrate(com.fasterxml.jackson.databind.JsonNode input)
Migrate a JSON input
|
@Nonnull
com.fasterxml.jackson.databind.JsonNode migrate(@Nonnull
com.fasterxml.jackson.databind.JsonNode input)
throws SwaggerMigrationException
input - the input nodeSwaggerMigrationException - migration failedCopyright © 2019. All Rights Reserved.