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

OpenAPI version 3 #72

Merged
merged 68 commits into from
Jan 30, 2019
Merged

OpenAPI version 3 #72

merged 68 commits into from
Jan 30, 2019

Conversation

notEthan
Copy link
Owner

this is a big'un.

  • major refactors to abstract openapi features to OpenAPI classes namespaced under OpenAPI::V2 and OpenAPI::V3
  • introduce Scorpio::Request and Scorpio::Response, relying on gem ur to represent requests and responses.
  • OpenAPI::Operation (v2 and v3) may be used to run requests without ResourceBase

@notEthan notEthan force-pushed the openapi3 branch 6 times, most recently from 4cdc5cf to 3d7c729 Compare January 30, 2019 00:41
…ration and V3::Operation. lib/scorpio/openapi/operation.rb will hold all Operation code.

V2 and V3 only include Scorpio::OpenAPI::Operation, triggering the OpenAPI::Operation autoload, once all the classes are defined, by moving the include to the bottom of openapi.rb
… and V3::Document. lib/scorpio/openapi/document.rb will hold all Document code.
…gurable attributes of a Document, with V2 and V3 modules as well
…penapi/operation.rb

drop attr_writer for path and http_method, these shouldn't be settable
…ead of listing keys not expected to be operations - rely on the openapi spec to determine this
…ses (Configurables modules), and implement for V2 and V3
…ied as json; handles text/plain; and returns unhandled media type bodies as text.
…le accessors in order to see what has been overridden
… ResourceBase inheritable accessors when these have been changed from their defaults
…ware and faraday_response_middleware with proc faraday_builder
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