generated from amazon-archives/__template_MIT-0
    
        
        - 
                Notifications
    You must be signed in to change notification settings 
- Fork 455
Closed
Labels
feature-requestfeature requestfeature requesthelp wantedCould use a second pair of eyes/handsCould use a second pair of eyes/handsopenapi-schematriagePending triage from maintainersPending triage from maintainers
Description
Use case
It would be helpful, if you would support adding extra JSON to generated OpenAPI schema endpoints.
We would like to use the generated OpenAPI scheme to provision an AWS API Gateway REST API using a OpenAPI 3.0 spec. For this, we need to add e.g. x-amazon-apigateway-integration objects.
The only way to accomplish this is by mutating the generated API spec using a post-processing?
Example:
  /presigned_put_url:
    get:
      tags:
        - client support
      operationId: getPresignedPutUrl
      description: returns a url for uploading files to the bff backend
      parameters:
        - in: query
          name: file_name
          description: Name of the destination file
          example: my_file.txt
          schema:
            type: string
      responses:
        <<: *default-responses
        "200":
          description: 200 New content - returned when new content available
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PutUrlResponse"
      x-amazon-apigateway-integration:
        <<: *apigw-integration-201
        uri: arn:aws:apigateway:${region}:lambda:path/2015-03-31/functions/${presigned_put_arn}/invocations
      security: *oidc-security
Solution/User Experience
I would like to add extra JSON at the endpoint level, using e.g. extra_json, to embed custom AWS API Gateway objects, where they are used
Alternative solutions
I could manipulate the generated OpenAPI spec myself using post-processingAcknowledgment
- This feature request meets Powertools for AWS Lambda (Python) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET
EricOddz, heitorlessa, ThomasLeedsLRH and TommoLeedsy
Metadata
Metadata
Assignees
Labels
feature-requestfeature requestfeature requesthelp wantedCould use a second pair of eyes/handsCould use a second pair of eyes/handsopenapi-schematriagePending triage from maintainersPending triage from maintainers
Type
Projects
Status
Shipped