Class: Committee::Drivers::OpenAPI3::Driver

Inherits:
Driver
  • Object
show all
Defined in:
lib/committee/drivers/open_api_3/driver.rb

Instance Method Summary collapse

Instance Method Details

#default_allow_get_bodyObject



16
17
18
# File 'lib/committee/drivers/open_api_3/driver.rb', line 16

def default_allow_get_body
  false
end

#default_coerce_date_timesObject



7
8
9
# File 'lib/committee/drivers/open_api_3/driver.rb', line 7

def default_coerce_date_times
  true
end

#default_coerce_form_paramsObject

Whether parameters that were form-encoded will be coerced by default.



12
13
14
# File 'lib/committee/drivers/open_api_3/driver.rb', line 12

def default_coerce_form_params
  true
end

#default_path_paramsObject

Whether parameters in a request’s path will be considered and coerced by default.



22
23
24
# File 'lib/committee/drivers/open_api_3/driver.rb', line 22

def default_path_params
  true
end

#default_query_paramsObject

Whether parameters in a request’s query string will be considered and coerced by default.



28
29
30
# File 'lib/committee/drivers/open_api_3/driver.rb', line 28

def default_query_params
  true
end

#default_validate_success_onlyObject



32
33
34
# File 'lib/committee/drivers/open_api_3/driver.rb', line 32

def default_validate_success_only
  false
end

#nameObject



36
37
38
# File 'lib/committee/drivers/open_api_3/driver.rb', line 36

def name
  :open_api_3
end

#parse(open_api) ⇒ Committee::Drivers::OpenAPI3::Schema



41
42
43
# File 'lib/committee/drivers/open_api_3/driver.rb', line 41

def parse(open_api)
  schema_class.new(self, open_api)
end

#schema_classObject



45
46
47
# File 'lib/committee/drivers/open_api_3/driver.rb', line 45

def schema_class
  Committee::Drivers::OpenAPI3::Schema
end