Skip to content

Two fixes for OpenAPI 2.0 version of the API. #188

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

Closed
wants to merge 7 commits into from

Conversation

zhirsch
Copy link

@zhirsch zhirsch commented Sep 30, 2017

  1. The "currentpage" parameter in some methods should be in the query, not in the path (fixes Multiple GroupV2 Query Problems. #124).

  2. The "components" parameter in some methods cannot use a $ref to specify the schema. Instead, specify its type as an integer. OpenAPI 3.0 allows $ref, apparently (fixes $ref not allowed in array-type query parameters in OpenAPI 2.0 spec #190).

These fixes are necessary to generate a client library with https://github.com/go-swagger/go-swagger.

Thanks!

@floatingatoll
Copy link

floatingatoll commented Sep 30, 2017 via email

Instead of type=object,allOf{$ref} just do $ref.
These cause go-swagger to generate non-determinstic output,
i.e. regenerating the client library multiple times in a row results
in different output.
@zhirsch
Copy link
Author

zhirsch commented Oct 1, 2017

I didn't file any issues related to these fixes, but other users might have reported related issues.

EDIT: I found an issue for the "currentpage" fix, and I filed a new one for the "components" fix.

@zhirsch zhirsch closed this Oct 1, 2017
@zhirsch
Copy link
Author

zhirsch commented Oct 1, 2017

I moved this to #192, sorry for any confusion.

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

Successfully merging this pull request may close these issues.

$ref not allowed in array-type query parameters in OpenAPI 2.0 spec Multiple GroupV2 Query Problems.
2 participants