Module: OpenapiContracts::Doc::WithParameters

Included in:
Operation, Path
Defined in:
lib/openapi_contracts/doc/with_parameters.rb

Instance Method Summary collapse

Instance Method Details

#parametersObject



4
5
6
# File 'lib/openapi_contracts/doc/with_parameters.rb', line 4

def parameters
  @parameters ||= Array.wrap(@spec.navigate('parameters')&.each&.map { |s| Doc::Parameter.new(s) })
end