Skip to content

Commit cb18b9b

Browse files
fix(go): add discriminator fields for InjectedItemSource oneOf (generated)
algolia/api-clients-automation#6170 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Eric Zaharia <[email protected]>
1 parent e7fd6e7 commit cb18b9b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lib/algolia/models/composition/external_source.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ def self.attribute_map
1818
}
1919
end
2020

21+
# Returns the keys that uniquely identify this oneOf variant when present
22+
def self.discriminator_attributes
23+
[
24+
:external
25+
]
26+
end
27+
2128
# Attribute type mapping.
2229
def self.types_mapping
2330
{

lib/algolia/models/composition/search_source.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ def self.attribute_map
1818
}
1919
end
2020

21+
# Returns the keys that uniquely identify this oneOf variant when present
22+
def self.discriminator_attributes
23+
[
24+
:search
25+
]
26+
end
27+
2128
# Attribute type mapping.
2229
def self.types_mapping
2330
{

0 commit comments

Comments
 (0)