Module: Scorpio::OpenAPI::V3::Operation::Configurables
- Included in:
- Scorpio::OpenAPI::V3::Operation
- Defined in:
- lib/scorpio/openapi/operation.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#request_media_type ⇒ Object
259 260 261 262 263 264 265 266 |
# File 'lib/scorpio/openapi/operation.rb', line 259 def request_media_type return @request_media_type if instance_variable_defined?(:@request_media_type) if requestBody && requestBody['content'] Request.best_media_type(requestBody['content'].keys) else openapi_document.request_media_type end end |
#server ⇒ Object
247 248 249 250 |
# File 'lib/scorpio/openapi/operation.rb', line 247 def server return @server if instance_variable_defined?(:@server) openapi_document.server end |
#server_variables ⇒ Object
253 254 255 256 |
# File 'lib/scorpio/openapi/operation.rb', line 253 def server_variables return @server_variables if instance_variable_defined?(:@server_variables) openapi_document.server_variables end |
Instance Method Details
#scheme ⇒ Object
241 242 243 244 |
# File 'lib/scorpio/openapi/operation.rb', line 241 def scheme # not applicable; for OpenAPI v3, scheme is specified by servers. nil end |