vellum_ai 1.13.5 → 1.13.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +0 -1
- data/lib/vellum_ai/integrations/client.rb +0 -4
- data/lib/vellum_ai/types/auth_type_enum.rb +2 -0
- data/lib/vellum_ai/types/chat_message.rb +9 -2
- data/lib/vellum_ai/types/chat_message_request.rb +9 -2
- data/lib/vellum_ai/types/composio_execute_tool_request.rb +2 -16
- data/lib/vellum_ai/types/integration_name.rb +2 -0
- data/lib/vellum_ai/types/workflow_execution_initiated_body.rb +16 -2
- metadata +2 -3
- data/lib/vellum_ai/types/error_detail_response.rb +0 -51
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 67b9e55e55e1bf26f4384c0e3465cab3b961c8c7cf6bd09aae614fbf175626ef
|
|
4
|
+
data.tar.gz: 8ce9ad78998a66e88d1978f77a0399a48b86722b222454be000e035b81242a82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6bf9d7c028359dc9da6d95bc6d92818f36cf0f1ad1773dbb00979b0fa6506d5e63b337eedd651b0d63b22092168aed82f690ec108afd080526d457dacb2d8482
|
|
7
|
+
data.tar.gz: 541133182a4acbf0f319a149e0561569c5e7cb4f8958a4f24878d8885bcf7a78d41404072b8d9d63bdf9e8d74980e9a5e8d60350b5a385df78a72e3d4112c73d
|
data/lib/requests.rb
CHANGED
|
@@ -56,7 +56,7 @@ end
|
|
|
56
56
|
end
|
|
57
57
|
# @return [Hash{String => String}]
|
|
58
58
|
def get_headers
|
|
59
|
-
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.
|
|
59
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.7' }
|
|
60
60
|
headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
|
|
61
61
|
headers
|
|
62
62
|
end
|
|
@@ -107,7 +107,7 @@ end
|
|
|
107
107
|
end
|
|
108
108
|
# @return [Hash{String => String}]
|
|
109
109
|
def get_headers
|
|
110
|
-
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.
|
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.7' }
|
|
111
111
|
headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
|
|
112
112
|
headers
|
|
113
113
|
end
|
data/lib/types_export.rb
CHANGED
|
@@ -175,7 +175,6 @@ require_relative "vellum_ai/types/environment_enum"
|
|
|
175
175
|
require_relative "vellum_ai/types/environment_read"
|
|
176
176
|
require_relative "vellum_ai/types/ephemeral_prompt_cache_config"
|
|
177
177
|
require_relative "vellum_ai/types/ephemeral_prompt_cache_config_type_enum"
|
|
178
|
-
require_relative "vellum_ai/types/error_detail_response"
|
|
179
178
|
require_relative "vellum_ai/types/error_vellum_value"
|
|
180
179
|
require_relative "vellum_ai/types/error_vellum_value_request"
|
|
181
180
|
require_relative "vellum_ai/types/event_create_response"
|
|
@@ -69,9 +69,7 @@ end
|
|
|
69
69
|
# * :provider (String)
|
|
70
70
|
# * :arguments (Hash{String => Object})
|
|
71
71
|
# * :toolkit_version (String)
|
|
72
|
-
# * :integration_name (String)
|
|
73
72
|
# * :integration (String)
|
|
74
|
-
# * :tool_name (String)
|
|
75
73
|
# * :tool (String)
|
|
76
74
|
# @param request_options [Vellum::RequestOptions]
|
|
77
75
|
# @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_RESPONSE]
|
|
@@ -244,9 +242,7 @@ end
|
|
|
244
242
|
# * :provider (String)
|
|
245
243
|
# * :arguments (Hash{String => Object})
|
|
246
244
|
# * :toolkit_version (String)
|
|
247
|
-
# * :integration_name (String)
|
|
248
245
|
# * :integration (String)
|
|
249
|
-
# * :tool_name (String)
|
|
250
246
|
# * :tool (String)
|
|
251
247
|
# @param request_options [Vellum::RequestOptions]
|
|
252
248
|
# @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_RESPONSE]
|
|
@@ -14,6 +14,8 @@ module Vellum
|
|
|
14
14
|
attr_reader :content
|
|
15
15
|
# @return [String] An optional identifier representing who or what generated this message.
|
|
16
16
|
attr_reader :source
|
|
17
|
+
# @return [Hash{String => Object}]
|
|
18
|
+
attr_reader :metadata
|
|
17
19
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
18
20
|
attr_reader :additional_properties
|
|
19
21
|
# @return [Object]
|
|
@@ -26,15 +28,17 @@ module Vellum
|
|
|
26
28
|
# @param role [Vellum::ChatMessageRole]
|
|
27
29
|
# @param content [Vellum::ChatMessageContent]
|
|
28
30
|
# @param source [String] An optional identifier representing who or what generated this message.
|
|
31
|
+
# @param metadata [Hash{String => Object}]
|
|
29
32
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
30
33
|
# @return [Vellum::ChatMessage]
|
|
31
|
-
def initialize(text: OMIT, role:, content: OMIT, source: OMIT, additional_properties: nil)
|
|
34
|
+
def initialize(text: OMIT, role:, content: OMIT, source: OMIT, metadata: OMIT, additional_properties: nil)
|
|
32
35
|
@text = text if text != OMIT
|
|
33
36
|
@role = role
|
|
34
37
|
@content = content if content != OMIT
|
|
35
38
|
@source = source if source != OMIT
|
|
39
|
+
@metadata = metadata if metadata != OMIT
|
|
36
40
|
@additional_properties = additional_properties
|
|
37
|
-
@_field_set = { "text": text, "role": role, "content": content, "source": source }.reject do | _k, v |
|
|
41
|
+
@_field_set = { "text": text, "role": role, "content": content, "source": source, "metadata": metadata }.reject do | _k, v |
|
|
38
42
|
v == OMIT
|
|
39
43
|
end
|
|
40
44
|
end
|
|
@@ -54,11 +58,13 @@ end
|
|
|
54
58
|
content = nil
|
|
55
59
|
end
|
|
56
60
|
source = parsed_json["source"]
|
|
61
|
+
metadata = parsed_json["metadata"]
|
|
57
62
|
new(
|
|
58
63
|
text: text,
|
|
59
64
|
role: role,
|
|
60
65
|
content: content,
|
|
61
66
|
source: source,
|
|
67
|
+
metadata: metadata,
|
|
62
68
|
additional_properties: struct
|
|
63
69
|
)
|
|
64
70
|
end
|
|
@@ -79,6 +85,7 @@ end
|
|
|
79
85
|
obj.role.is_a?(Vellum::ChatMessageRole) != false || raise("Passed value for field obj.role is not the expected type, validation failed.")
|
|
80
86
|
obj.content.nil? || Vellum::ChatMessageContent.validate_raw(obj: obj.content)
|
|
81
87
|
obj.source&.is_a?(String) != false || raise("Passed value for field obj.source is not the expected type, validation failed.")
|
|
88
|
+
obj.metadata&.is_a?(Hash) != false || raise("Passed value for field obj.metadata is not the expected type, validation failed.")
|
|
82
89
|
end
|
|
83
90
|
end
|
|
84
91
|
end
|
|
@@ -14,6 +14,8 @@ module Vellum
|
|
|
14
14
|
attr_reader :content
|
|
15
15
|
# @return [String] An optional identifier representing who or what generated this message.
|
|
16
16
|
attr_reader :source
|
|
17
|
+
# @return [Hash{String => Object}]
|
|
18
|
+
attr_reader :metadata
|
|
17
19
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
18
20
|
attr_reader :additional_properties
|
|
19
21
|
# @return [Object]
|
|
@@ -26,15 +28,17 @@ module Vellum
|
|
|
26
28
|
# @param role [Vellum::ChatMessageRole]
|
|
27
29
|
# @param content [Vellum::ChatMessageContentRequest]
|
|
28
30
|
# @param source [String] An optional identifier representing who or what generated this message.
|
|
31
|
+
# @param metadata [Hash{String => Object}]
|
|
29
32
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
30
33
|
# @return [Vellum::ChatMessageRequest]
|
|
31
|
-
def initialize(text: OMIT, role:, content: OMIT, source: OMIT, additional_properties: nil)
|
|
34
|
+
def initialize(text: OMIT, role:, content: OMIT, source: OMIT, metadata: OMIT, additional_properties: nil)
|
|
32
35
|
@text = text if text != OMIT
|
|
33
36
|
@role = role
|
|
34
37
|
@content = content if content != OMIT
|
|
35
38
|
@source = source if source != OMIT
|
|
39
|
+
@metadata = metadata if metadata != OMIT
|
|
36
40
|
@additional_properties = additional_properties
|
|
37
|
-
@_field_set = { "text": text, "role": role, "content": content, "source": source }.reject do | _k, v |
|
|
41
|
+
@_field_set = { "text": text, "role": role, "content": content, "source": source, "metadata": metadata }.reject do | _k, v |
|
|
38
42
|
v == OMIT
|
|
39
43
|
end
|
|
40
44
|
end
|
|
@@ -54,11 +58,13 @@ end
|
|
|
54
58
|
content = nil
|
|
55
59
|
end
|
|
56
60
|
source = parsed_json["source"]
|
|
61
|
+
metadata = parsed_json["metadata"]
|
|
57
62
|
new(
|
|
58
63
|
text: text,
|
|
59
64
|
role: role,
|
|
60
65
|
content: content,
|
|
61
66
|
source: source,
|
|
67
|
+
metadata: metadata,
|
|
62
68
|
additional_properties: struct
|
|
63
69
|
)
|
|
64
70
|
end
|
|
@@ -79,6 +85,7 @@ end
|
|
|
79
85
|
obj.role.is_a?(Vellum::ChatMessageRole) != false || raise("Passed value for field obj.role is not the expected type, validation failed.")
|
|
80
86
|
obj.content.nil? || Vellum::ChatMessageContentRequest.validate_raw(obj: obj.content)
|
|
81
87
|
obj.source&.is_a?(String) != false || raise("Passed value for field obj.source is not the expected type, validation failed.")
|
|
88
|
+
obj.metadata&.is_a?(Hash) != false || raise("Passed value for field obj.metadata is not the expected type, validation failed.")
|
|
82
89
|
end
|
|
83
90
|
end
|
|
84
91
|
end
|
|
@@ -11,12 +11,8 @@ module Vellum
|
|
|
11
11
|
attr_reader :arguments
|
|
12
12
|
# @return [String]
|
|
13
13
|
attr_reader :toolkit_version
|
|
14
|
-
# @return [String]
|
|
15
|
-
attr_reader :integration_name
|
|
16
14
|
# @return [String]
|
|
17
15
|
attr_reader :integration
|
|
18
|
-
# @return [String]
|
|
19
|
-
attr_reader :tool_name
|
|
20
16
|
# @return [String]
|
|
21
17
|
attr_reader :tool
|
|
22
18
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
@@ -30,22 +26,18 @@ module Vellum
|
|
|
30
26
|
# @param provider [String]
|
|
31
27
|
# @param arguments [Hash{String => Object}]
|
|
32
28
|
# @param toolkit_version [String]
|
|
33
|
-
# @param integration_name [String]
|
|
34
29
|
# @param integration [String]
|
|
35
|
-
# @param tool_name [String]
|
|
36
30
|
# @param tool [String]
|
|
37
31
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
38
32
|
# @return [Vellum::ComposioExecuteToolRequest]
|
|
39
|
-
def initialize(provider:, arguments:, toolkit_version: OMIT,
|
|
33
|
+
def initialize(provider:, arguments:, toolkit_version: OMIT, integration: OMIT, tool: OMIT, additional_properties: nil)
|
|
40
34
|
@provider = provider
|
|
41
35
|
@arguments = arguments
|
|
42
36
|
@toolkit_version = toolkit_version if toolkit_version != OMIT
|
|
43
|
-
@integration_name = integration_name if integration_name != OMIT
|
|
44
37
|
@integration = integration if integration != OMIT
|
|
45
|
-
@tool_name = tool_name if tool_name != OMIT
|
|
46
38
|
@tool = tool if tool != OMIT
|
|
47
39
|
@additional_properties = additional_properties
|
|
48
|
-
@_field_set = { "provider": provider, "arguments": arguments, "toolkit_version": toolkit_version, "
|
|
40
|
+
@_field_set = { "provider": provider, "arguments": arguments, "toolkit_version": toolkit_version, "integration": integration, "tool": tool }.reject do | _k, v |
|
|
49
41
|
v == OMIT
|
|
50
42
|
end
|
|
51
43
|
end
|
|
@@ -59,17 +51,13 @@ end
|
|
|
59
51
|
provider = parsed_json["provider"]
|
|
60
52
|
arguments = parsed_json["arguments"]
|
|
61
53
|
toolkit_version = parsed_json["toolkit_version"]
|
|
62
|
-
integration_name = parsed_json["integration_name"]
|
|
63
54
|
integration = parsed_json["integration"]
|
|
64
|
-
tool_name = parsed_json["tool_name"]
|
|
65
55
|
tool = parsed_json["tool"]
|
|
66
56
|
new(
|
|
67
57
|
provider: provider,
|
|
68
58
|
arguments: arguments,
|
|
69
59
|
toolkit_version: toolkit_version,
|
|
70
|
-
integration_name: integration_name,
|
|
71
60
|
integration: integration,
|
|
72
|
-
tool_name: tool_name,
|
|
73
61
|
tool: tool,
|
|
74
62
|
additional_properties: struct
|
|
75
63
|
)
|
|
@@ -90,9 +78,7 @@ end
|
|
|
90
78
|
obj.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
|
|
91
79
|
obj.arguments.is_a?(Hash) != false || raise("Passed value for field obj.arguments is not the expected type, validation failed.")
|
|
92
80
|
obj.toolkit_version&.is_a?(String) != false || raise("Passed value for field obj.toolkit_version is not the expected type, validation failed.")
|
|
93
|
-
obj.integration_name&.is_a?(String) != false || raise("Passed value for field obj.integration_name is not the expected type, validation failed.")
|
|
94
81
|
obj.integration&.is_a?(String) != false || raise("Passed value for field obj.integration is not the expected type, validation failed.")
|
|
95
|
-
obj.tool_name&.is_a?(String) != false || raise("Passed value for field obj.tool_name is not the expected type, validation failed.")
|
|
96
82
|
obj.tool&.is_a?(String) != false || raise("Passed value for field obj.tool is not the expected type, validation failed.")
|
|
97
83
|
end
|
|
98
84
|
end
|
|
@@ -29,6 +29,7 @@ module Vellum
|
|
|
29
29
|
# * `GMAIL` - Gmail
|
|
30
30
|
# * `GOOGLE_ADS` - Google Ads
|
|
31
31
|
# * `GOOGLE_ANALYTICS` - Google Analytics
|
|
32
|
+
# * `GOOGLE_BIGQUERY` - Google BigQuery
|
|
32
33
|
# * `GOOGLE_DOCS` - Google Docs
|
|
33
34
|
# * `GOOGLE_PHOTOS` - Google Photos
|
|
34
35
|
# * `GOOGLE_SEARCH_CONSOLE` - Google Search Console
|
|
@@ -131,6 +132,7 @@ module Vellum
|
|
|
131
132
|
GMAIL = "GMAIL"
|
|
132
133
|
GOOGLE_ADS = "GOOGLE_ADS"
|
|
133
134
|
GOOGLE_ANALYTICS = "GOOGLE_ANALYTICS"
|
|
135
|
+
GOOGLE_BIGQUERY = "GOOGLE_BIGQUERY"
|
|
134
136
|
GOOGLE_DOCS = "GOOGLE_DOCS"
|
|
135
137
|
GOOGLE_PHOTOS = "GOOGLE_PHOTOS"
|
|
136
138
|
GOOGLE_SEARCH_CONSOLE = "GOOGLE_SEARCH_CONSOLE"
|
|
@@ -9,6 +9,8 @@ module Vellum
|
|
|
9
9
|
attr_reader :workflow_definition
|
|
10
10
|
# @return [Hash{String => Object}]
|
|
11
11
|
attr_reader :inputs
|
|
12
|
+
# @return [Vellum::VellumCodeResourceDefinition]
|
|
13
|
+
attr_reader :trigger
|
|
12
14
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
13
15
|
attr_reader :additional_properties
|
|
14
16
|
# @return [Object]
|
|
@@ -19,13 +21,17 @@ module Vellum
|
|
|
19
21
|
|
|
20
22
|
# @param workflow_definition [Vellum::VellumCodeResourceDefinition]
|
|
21
23
|
# @param inputs [Hash{String => Object}]
|
|
24
|
+
# @param trigger [Vellum::VellumCodeResourceDefinition]
|
|
22
25
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
23
26
|
# @return [Vellum::WorkflowExecutionInitiatedBody]
|
|
24
|
-
def initialize(workflow_definition:, inputs:, additional_properties: nil)
|
|
27
|
+
def initialize(workflow_definition:, inputs:, trigger: OMIT, additional_properties: nil)
|
|
25
28
|
@workflow_definition = workflow_definition
|
|
26
29
|
@inputs = inputs
|
|
30
|
+
@trigger = trigger if trigger != OMIT
|
|
27
31
|
@additional_properties = additional_properties
|
|
28
|
-
@_field_set = { "workflow_definition": workflow_definition, "inputs": inputs }
|
|
32
|
+
@_field_set = { "workflow_definition": workflow_definition, "inputs": inputs, "trigger": trigger }.reject do | _k, v |
|
|
33
|
+
v == OMIT
|
|
34
|
+
end
|
|
29
35
|
end
|
|
30
36
|
# Deserialize a JSON object to an instance of WorkflowExecutionInitiatedBody
|
|
31
37
|
#
|
|
@@ -41,9 +47,16 @@ module Vellum
|
|
|
41
47
|
workflow_definition = nil
|
|
42
48
|
end
|
|
43
49
|
inputs = parsed_json["inputs"]
|
|
50
|
+
unless parsed_json["trigger"].nil?
|
|
51
|
+
trigger = parsed_json["trigger"].to_json
|
|
52
|
+
trigger = Vellum::VellumCodeResourceDefinition.from_json(json_object: trigger)
|
|
53
|
+
else
|
|
54
|
+
trigger = nil
|
|
55
|
+
end
|
|
44
56
|
new(
|
|
45
57
|
workflow_definition: workflow_definition,
|
|
46
58
|
inputs: inputs,
|
|
59
|
+
trigger: trigger,
|
|
47
60
|
additional_properties: struct
|
|
48
61
|
)
|
|
49
62
|
end
|
|
@@ -62,6 +75,7 @@ module Vellum
|
|
|
62
75
|
def self.validate_raw(obj:)
|
|
63
76
|
Vellum::VellumCodeResourceDefinition.validate_raw(obj: obj.workflow_definition)
|
|
64
77
|
obj.inputs.is_a?(Hash) != false || raise("Passed value for field obj.inputs is not the expected type, validation failed.")
|
|
78
|
+
obj.trigger.nil? || Vellum::VellumCodeResourceDefinition.validate_raw(obj: obj.trigger)
|
|
65
79
|
end
|
|
66
80
|
end
|
|
67
81
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vellum_ai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.13.
|
|
4
|
+
version: 1.13.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vellum
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -282,7 +282,6 @@ files:
|
|
|
282
282
|
- lib/vellum_ai/types/environment_read.rb
|
|
283
283
|
- lib/vellum_ai/types/ephemeral_prompt_cache_config.rb
|
|
284
284
|
- lib/vellum_ai/types/ephemeral_prompt_cache_config_type_enum.rb
|
|
285
|
-
- lib/vellum_ai/types/error_detail_response.rb
|
|
286
285
|
- lib/vellum_ai/types/error_input.rb
|
|
287
286
|
- lib/vellum_ai/types/error_vellum_value.rb
|
|
288
287
|
- lib/vellum_ai/types/error_vellum_value_request.rb
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require "ostruct"
|
|
3
|
-
require "json"
|
|
4
|
-
|
|
5
|
-
module Vellum
|
|
6
|
-
class ErrorDetailResponse
|
|
7
|
-
# @return [String] Message informing the user of the error.
|
|
8
|
-
attr_reader :detail
|
|
9
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
10
|
-
attr_reader :additional_properties
|
|
11
|
-
# @return [Object]
|
|
12
|
-
attr_reader :_field_set
|
|
13
|
-
protected :_field_set
|
|
14
|
-
|
|
15
|
-
OMIT = Object.new
|
|
16
|
-
|
|
17
|
-
# @param detail [String] Message informing the user of the error.
|
|
18
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
19
|
-
# @return [Vellum::ErrorDetailResponse]
|
|
20
|
-
def initialize(detail:, additional_properties: nil)
|
|
21
|
-
@detail = detail
|
|
22
|
-
@additional_properties = additional_properties
|
|
23
|
-
@_field_set = { "detail": detail }
|
|
24
|
-
end
|
|
25
|
-
# Deserialize a JSON object to an instance of ErrorDetailResponse
|
|
26
|
-
#
|
|
27
|
-
# @param json_object [String]
|
|
28
|
-
# @return [Vellum::ErrorDetailResponse]
|
|
29
|
-
def self.from_json(json_object:)
|
|
30
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
31
|
-
parsed_json = JSON.parse(json_object)
|
|
32
|
-
detail = parsed_json["detail"]
|
|
33
|
-
new(detail: detail, additional_properties: struct)
|
|
34
|
-
end
|
|
35
|
-
# Serialize an instance of ErrorDetailResponse to a JSON object
|
|
36
|
-
#
|
|
37
|
-
# @return [String]
|
|
38
|
-
def to_json
|
|
39
|
-
@_field_set&.to_json
|
|
40
|
-
end
|
|
41
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
42
|
-
# hash and check each fields type against the current object's property
|
|
43
|
-
# definitions.
|
|
44
|
-
#
|
|
45
|
-
# @param obj [Object]
|
|
46
|
-
# @return [Void]
|
|
47
|
-
def self.validate_raw(obj:)
|
|
48
|
-
obj.detail.is_a?(String) != false || raise("Passed value for field obj.detail is not the expected type, validation failed.")
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|