Module: Apipie::Generator::Swagger::ParamDescription

Defined in:
lib/apipie/generator/swagger/param_description.rb

Defined Under Namespace

Classes: Builder, Composite, Description, In, Name, PathParamsComposite, ReferencedComposite, Type

Class Method Summary collapse

Class Method Details

.create_for_missing_param(method_description, name) ⇒ Apipie::ParamDescription

Parameters:

Returns:



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/apipie/generator/swagger/param_description.rb', line 6

def self.create_for_missing_param(method_description, name)
  Apipie::ParamDescription.new(
    method_description,
    name,
    Numeric,
    {
      in: "path",
      required: true,
      added_from_path: true,
    }
  )
end