Class: ActionSpec::OpenApi::Operation
- Inherits:
-
Object
- Object
- ActionSpec::OpenApi::Operation
- Defined in:
- lib/action_spec/open_api/operation.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(endpoint, controller_path:) ⇒ Operation
constructor
A new instance of Operation.
Constructor Details
Instance Method Details
#build ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/action_spec/open_api/operation.rb', line 12 def build { "summary" => endpoint.summary.presence, "operationId" => operation_id, "tags" => , "parameters" => parameters.presence, "requestBody" => schema.request_body(endpoint.request), "responses" => responses }.compact end |