Class: Sink::Resources::OpenAPIFormats

Inherits:
Object
  • Object
show all
Defined in:
lib/sink/resources/openapi_formats.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ OpenAPIFormats

Returns a new instance of OpenAPIFormats.

Parameters:



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

Parameters:

  • params (Hash{Symbol => Object}) (defaults to: {})

    Attributes to send in this request. @option params [Boolean] :enable_debug_logging

  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



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]

Parameters:

  • params (Hash{Symbol => Object}) (defaults to: {})

    Attributes to send in this request. @option params [Boolean, nil] :enable_debug_logging

  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



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