Method: Modern::DocGenerator::OpenAPI3::Operations#_parameter

Defined in:
lib/modern/doc_generator/open_api3/operations.rb

#_parameter(parameter) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/modern/doc_generator/open_api3/operations.rb', line 36

def _parameter(parameter)
  # TODO: this should be in the parameter class, or that logic should be here.

  parameter.to_openapi3.merge(
    schema: _build_schema_value({}, {}, parameter.type)
  )
end