-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[develop 2.0] support inline schemas #189
Comments
This is planned for 2.1-M2, which is in development. Currently it is not supported in 2.1-M1 |
That would be great! Thanks! |
FYI this is visible in the petstore example: Per the respective JSON, we should be seeing a "200" response defined in addition to the (visible) "400" response:
|
@hamx0r - that's actually something different. You can see the 200 response at top, just below the path of the operation. |
@webron - I see that. I assumed the Response Messages section contained an exhaustive list of response types per the "responses" section of the swagger spec for the operation. Is it expected behavior to split up the location where response types are presented on Swagger UI? I'd expect the "200" "description" (successful operation) to show up somewhere. Also, the Response Content Type dropdown isn't clear to me - it appears to be an input for selecting how the server responds, but there's nothing in the swagger spec I see to control response content type. Perhaps these issues will be addressed in 2.1-M2. |
Regarding the display - swagger-api/swagger-ui#674. Regarding the response content type drop down, that's what the |
This has been fixed in recent commits. |
Question: If i'm using Swagger UI (master) and would like to update it's Doing so throws a JS error, so i'm likely doing something wrong. It looks On Wed, Mar 25, 2015 at 10:27 PM, Jeremy Whitlock notifications@github.com
|
The build process for swagger-ui has changed recently. It use to be as simple as replacing a JavaScript library but now I will need to defer to @mohsen1 for this one. |
if you use the develop_2.0 branch it's using npm to fetch directly from current SwaggerJS#develop_2.0. |
Thanks - i'd checked the timestamps of recent checkins, and swagger-ui looked about 10 hrs behind swagger-js, so i wouldn't have guessed. All the same, i'm seeing the same JS error when using what's pulled from swagger-ui develop_2.0: bug report opened #322 |
It's legal to support schemas directly in-line, which is not currently supported in the js client.
The text was updated successfully, but these errors were encountered: