Skip to content

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

Closed
zhirsch wants to merge 7 commits into
Bungie-net:masterfrom
zhirsch:master
Closed

Two fixes for OpenAPI 2.0 version of the API.#188
zhirsch wants to merge 7 commits into
Bungie-net:masterfrom
zhirsch:master

Conversation

@zhirsch

@zhirsch zhirsch commented Sep 30, 2017

Copy link
Copy Markdown
  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

floatingatoll commented Sep 30, 2017 via email

Copy link
Copy Markdown

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

zhirsch commented Oct 1, 2017

Copy link
Copy Markdown
Author

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

zhirsch commented Oct 1, 2017

Copy link
Copy Markdown
Author

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