class Committee::Drivers::OpenAPI2::SchemaBuilder
Constants
- LINK_REQUIRED_FIELDS
Attributes
Public Class Methods
Source
# File lib/committee/drivers/open_api_2/schema_builder.rb, line 7 def initialize(link_data) @link_data = link_data end
Private Instance Methods
Source
# File lib/committee/drivers/open_api_2/schema_builder.rb, line 17 def check_required_fields!(param_data) LINK_REQUIRED_FIELDS.each do |field| if !param_data[field] raise ArgumentError, "Committee: no #{field} section in link data." end end end