Class SpecificationExtensionsMapper
java.lang.Object
software.amazon.smithy.openapi.fromsmithy.mappers.SpecificationExtensionsMapper
- All Implemented Interfaces:
OpenApiMapper
Maps trait shapes tagged with
SpecificationExtensionTrait
into OpenAPI specification extensions.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAttach Specification Extensions to Service.updateOperation
(Context<? extends Trait> context, OperationShape shape, OperationObject operation, String httpMethodName, String path) Attach Specification Extensions to Operation.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.openapi.fromsmithy.OpenApiMapper
before, getOrder, postProcessOperation, updateDefaultSettings, updateNode, updateParameter, updatePathItem, updateRequestBody, updateResponse, updateSecurity, updateSecurityScheme
-
Constructor Details
-
SpecificationExtensionsMapper
public SpecificationExtensionsMapper()
-
-
Method Details
-
after
Attach Specification Extensions to Service.- Specified by:
after
in interfaceOpenApiMapper
- Parameters:
context
- Conversion context.openapi
- OpenAPI object to modify.- Returns:
- Returns the updated OpenApi object.
-
updateOperation
public OperationObject updateOperation(Context<? extends Trait> context, OperationShape shape, OperationObject operation, String httpMethodName, String path) Attach Specification Extensions to Operation.- Specified by:
updateOperation
in interfaceOpenApiMapper
- Parameters:
context
- Conversion context.shape
- Operation being converted.operation
- OperationObject being built.httpMethodName
- The HTTP method of the operation.path
- The HTTP URI of the operation.- Returns:
- Returns the updated operation object.
-