Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Specify model as file #124

Open
jonathanalberghini opened this issue Sep 28, 2019 · 0 comments
Open

Specify model as file #124

jonathanalberghini opened this issue Sep 28, 2019 · 0 comments

Comments

@jonathanalberghini
Copy link

jonathanalberghini commented Sep 28, 2019

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"
}
]
}
]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant