Class SpecificationExtensionsMapper

java.lang.Object
software.amazon.smithy.openapi.fromsmithy.mappers.SpecificationExtensionsMapper
All Implemented Interfaces:
OpenApiMapper

public class SpecificationExtensionsMapper extends Object implements OpenApiMapper
  • Constructor Details

    • SpecificationExtensionsMapper

      public SpecificationExtensionsMapper()
  • Method Details

    • after

      public OpenApi after(Context<? extends Trait> context, OpenApi openapi)
      Attach Specification Extensions to Service.
      Specified by:
      after in interface OpenApiMapper
      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 interface OpenApiMapper
      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.