Skip to content
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

Misc #25

Merged
merged 7 commits into from
May 1, 2018
Merged

Misc #25

merged 7 commits into from
May 1, 2018

Conversation

notEthan
Copy link
Owner

various relatively minor things too small for their own PRs

…nly strings are valid object keys in json.

if an object/hash key is specified as a number, as is valid in yaml, stringification is appropriate. the petstore, and probably many other openapi specs, use numbers instead of strings to key status code responses. we wish to identify the correct class_for_schema when that is the case.

before:
"responses" => #{<Scorpio::OpenAPI::V2::Responses Scorpio::JSON::HashNode fragment="#/paths/~1pet~1findByTags/get/responses">
  200 => #{<Scorpio::JSON::HashNode fragment="#/paths/~1pet~1findByTags/get/responses/200">

after:
"responses" => #{<Scorpio::OpenAPI::V2::Responses Scorpio::JSON::HashNode fragment="#/paths/~1pet~1findByTags/get/responses">
  200 => #{<Scorpio::OpenAPI::V2::Response Scorpio::JSON::HashNode fragment="#/paths/~1pet~1findByTags/get/responses/200">
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.

None yet

1 participant