Class CoreExtension
- java.lang.Object
-
- software.amazon.smithy.openapi.fromsmithy.CoreExtension
-
- All Implemented Interfaces:
Smithy2OpenApiExtension
public final class CoreExtension extends java.lang.Object implements Smithy2OpenApiExtension
Registers the core Smithy2OpenApi functionality.
-
-
Constructor Summary
Constructors Constructor Description CoreExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<JsonSchemaMapper>
getJsonSchemaMappers()
Registers JsonSchema mappers that are used to modify JsonSchema definitions created from a Smithy model.java.util.List<OpenApiMapper>
getOpenApiMappers()
Registers OpenAPI mappers, classes used to modify and extend the process of converting a Smithy model to OpenAPI.java.util.List<OpenApiProtocol<? extends Trait>>
getProtocols()
Registers additional protocols that handle serialization and deserialization.java.util.List<SecuritySchemeConverter<? extends Trait>>
getSecuritySchemeConverters()
Registers additional security scheme converters.
-
-
-
Method Detail
-
getSecuritySchemeConverters
public java.util.List<SecuritySchemeConverter<? extends Trait>> getSecuritySchemeConverters()
Description copied from interface:Smithy2OpenApiExtension
Registers additional security scheme converters.- Specified by:
getSecuritySchemeConverters
in interfaceSmithy2OpenApiExtension
- Returns:
- Returns the converters to register.
-
getProtocols
public java.util.List<OpenApiProtocol<? extends Trait>> getProtocols()
Description copied from interface:Smithy2OpenApiExtension
Registers additional protocols that handle serialization and deserialization.- Specified by:
getProtocols
in interfaceSmithy2OpenApiExtension
- Returns:
- Returns the protocols to register.
-
getOpenApiMappers
public java.util.List<OpenApiMapper> getOpenApiMappers()
Description copied from interface:Smithy2OpenApiExtension
Registers OpenAPI mappers, classes used to modify and extend the process of converting a Smithy model to OpenAPI.- Specified by:
getOpenApiMappers
in interfaceSmithy2OpenApiExtension
- Returns:
- Returns the mappers to register.
-
getJsonSchemaMappers
public java.util.List<JsonSchemaMapper> getJsonSchemaMappers()
Description copied from interface:Smithy2OpenApiExtension
Registers JsonSchema mappers that are used to modify JsonSchema definitions created from a Smithy model.- Specified by:
getJsonSchemaMappers
in interfaceSmithy2OpenApiExtension
- Returns:
- Returns the mappers to register.
-
-