Class OpenApiJsonSchemaMapper
- java.lang.Object
-
- software.amazon.smithy.openapi.fromsmithy.OpenApiJsonSchemaMapper
-
- All Implemented Interfaces:
JsonSchemaMapper
public final class OpenApiJsonSchemaMapper extends java.lang.Object implements JsonSchemaMapper
Applies OpenAPI extensions to aSchema
using configuration settings found inOpenApiConfig
.Note: the properties and features added by this mapper can be removed using
JsonSchemaConfig.setDisableFeatures(java.util.Set<java.lang.String>)
.
-
-
Constructor Summary
Constructors Constructor Description OpenApiJsonSchemaMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema.Builder
updateSchema(Shape shape, Schema.Builder builder, JsonSchemaConfig config)
Updates a schema builder.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.jsonschema.JsonSchemaMapper
getOrder
-
-
-
-
Method Detail
-
updateSchema
public Schema.Builder updateSchema(Shape shape, Schema.Builder builder, JsonSchemaConfig config)
Description copied from interface:JsonSchemaMapper
Updates a schema builder.- Specified by:
updateSchema
in interfaceJsonSchemaMapper
- Parameters:
shape
- Shape used for the conversion.builder
- Schema builder to update.config
- JSON Schema config.- Returns:
- Returns an updated schema builder.
-
-