Creating response model schema from serverless yaml

Can somebody please point me in the right direction for how to do this? I checked the serverless yaml reference here: https://www.serverless.com/framework/docs/providers/aws/guide/serverless.yml/

It does not actually even detail the http.response section so I tried to use what is there for the request section (figured it would be consistent):

response:
  headers:
    Content-Type: "'application/json'"
      schema:
        application/json: ${file(resources/response-model/site-response.schema.json)}

This does not create a model, is there also any guidance on how I link the model (once created) to a function created with serverless?

1 Like

I know this is already a year old, but have you solved this?