Class: Sink::Resources::OpenAPIFormats
- Inherits:
-
Object
- Object
- Sink::Resources::OpenAPIFormats
- Defined in:
- lib/sink/resources/openapi_formats.rb
Instance Method Summary collapse
- #array_type_one_entry(params = {}, opts = {}) ⇒ Sink::Models::OpenAPIFormatArrayTypeOneEntryResponse
-
#array_type_one_entry_with_null(params = {}, opts = {}) ⇒ Sink::Models::OpenAPIFormatArrayTypeOneEntryWithNullResponse
The ‘type` property being set to [T, null] should result in an optional response return type in generated SDKs.
-
#initialize(client:) ⇒ OpenAPIFormats
constructor
A new instance of OpenAPIFormats.
Constructor Details
#initialize(client:) ⇒ OpenAPIFormats
Returns a new instance of OpenAPIFormats.
7 8 9 |
# File 'lib/sink/resources/openapi_formats.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#array_type_one_entry(params = {}, opts = {}) ⇒ Sink::Models::OpenAPIFormatArrayTypeOneEntryResponse
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/sink/resources/openapi_formats.rb', line 19 def array_type_one_entry(params = {}, opts = {}) req = { method: :post, path: "/openapi_formats/array_type_one_entry", body: params, headers: {"Content-Type" => "application/json"}, model: Sink::Models::OpenAPIFormatArrayTypeOneEntryResponse } @client.request(req, opts) end |
#array_type_one_entry_with_null(params = {}, opts = {}) ⇒ Sink::Models::OpenAPIFormatArrayTypeOneEntryWithNullResponse
The ‘type` property being set to [T, null] should result in an optional response
return type in generated SDKs.
See https://linear.app/stainless/issue/STA-569/support-for-type-[object-null]
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/sink/resources/openapi_formats.rb', line 41 def array_type_one_entry_with_null(params = {}, opts = {}) req = { method: :post, path: "/openapi_formats/array_type_one_entry_with_null", body: params, headers: {"Content-Type" => "application/json"}, model: Sink::Models::OpenAPIFormatArrayTypeOneEntryWithNullResponse } @client.request(req, opts) end |