serverless-aws-documentation icon indicating copy to clipboard operation
serverless-aws-documentation copied to clipboard

Specify model as file

Open jonathanalberghini opened this issue 6 years ago • 0 comments

Can you do this?
Example requestModels: - "application/json": ${file(./schema/login_request.json)}
Do you support example or response object? responses: '200': description: |- 200 response content: application/json: examples: foo: value: { "versions": [ { "status": "CURRENT", "updated": "2011-01-21T11:33:21Z", "id": "v2.0", "links": [ { "href": "http://127.0.0.1:8774/v2/", "rel": "self" } ] }, { "status": "EXPERIMENTAL", "updated": "2013-07-23T11:33:21Z", "id": "v3.0", "links": [ { "href": "http://127.0.0.1:8774/v3/", "rel": "self" } ] } ] }

jonathanalberghini avatar Sep 28 '19 21:09 jonathanalberghini