class Committee::Drivers::OpenAPI2::Link
Link
abstracts an API link specifically for OpenAPI 2.
Attributes
The link’s input media type. i.e. How requests should be encoded.
The link’s output media type. i.e. How responses should be encoded.
The link’s input schema. i.e. How we validate an endpoint’s incoming parameters.
The link’s output schema. i.e. How we validate an endpoint’s response data.
Public Instance Methods
Source
# File lib/committee/drivers/open_api_2/link.rb, line 30 def rel raise "Committee: rel not implemented for OpenAPI" end
Source
# File lib/committee/drivers/open_api_2/link.rb, line 34 def target_schema target_schemas[status_success] || target_schemas[200] || target_schemas[201] || target_schemas.values.first end