Class OpenApiJsonSchemaMapper

java.lang.Object
software.amazon.smithy.openapi.fromsmithy.OpenApiJsonSchemaMapper
All Implemented Interfaces:
software.amazon.smithy.jsonschema.JsonSchemaMapper

public final class OpenApiJsonSchemaMapper extends Object implements software.amazon.smithy.jsonschema.JsonSchemaMapper
Applies OpenAPI extensions to a Schema using configuration settings found in OpenApiConfig.

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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    software.amazon.smithy.jsonschema.Schema.Builder
    updateSchema(software.amazon.smithy.model.shapes.Shape shape, software.amazon.smithy.jsonschema.Schema.Builder builder, software.amazon.smithy.jsonschema.JsonSchemaConfig config)
     

    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
  • Constructor Details

    • OpenApiJsonSchemaMapper

      public OpenApiJsonSchemaMapper()
  • Method Details

    • updateSchema

      public software.amazon.smithy.jsonschema.Schema.Builder updateSchema(software.amazon.smithy.model.shapes.Shape shape, software.amazon.smithy.jsonschema.Schema.Builder builder, software.amazon.smithy.jsonschema.JsonSchemaConfig config)
      Specified by:
      updateSchema in interface software.amazon.smithy.jsonschema.JsonSchemaMapper