Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37229,6 +37229,15 @@ components:
description: Search query following the event search syntax.
example: "service:orders-* AND @language:go"
type: string
states:
description: Filter issues by state. Multiple values are combined with OR logic.
example:
- "OPEN"
- "ACKNOWLEDGED"
items:
$ref: "#/components/schemas/IssueState"
maxItems: 20
type: array
team_ids:
description: Filter issues by team IDs. Multiple values are combined with OR logic.
example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class IssuesSearchRequestDataAttributes
# Search query following the event search syntax.
attr_reader :query

# Filter issues by state. Multiple values are combined with OR logic.
attr_reader :states

# Filter issues by team IDs. Multiple values are combined with OR logic.
attr_reader :team_ids

Expand All @@ -56,6 +59,7 @@ def self.attribute_map
:'order_by' => :'order_by',
:'persona' => :'persona',
:'query' => :'query',
:'states' => :'states',
:'team_ids' => :'team_ids',
:'to' => :'to',
:'track' => :'track'
Expand All @@ -71,6 +75,7 @@ def self.openapi_types
:'order_by' => :'IssuesSearchRequestDataAttributesOrderBy',
:'persona' => :'IssuesSearchRequestDataAttributesPersona',
:'query' => :'String',
:'states' => :'Array<IssueState>',
:'team_ids' => :'Array<UUID>',
:'to' => :'Integer',
:'track' => :'IssuesSearchRequestDataAttributesTrack'
Expand Down Expand Up @@ -117,6 +122,12 @@ def initialize(attributes = {})
self.query = attributes[:'query']
end

if attributes.key?(:'states')
if (value = attributes[:'states']).is_a?(Array)
self.states = value
end
end

if attributes.key?(:'team_ids')
if (value = attributes[:'team_ids']).is_a?(Array)
self.team_ids = value
Expand All @@ -139,6 +150,7 @@ def valid?
return false if !@assignee_ids.nil? && @assignee_ids.length > 50
return false if @from.nil?
return false if @query.nil?
return false if !@states.nil? && @states.length > 20
return false if !@team_ids.nil? && @team_ids.length > 50
return false if @to.nil?
true
Expand Down Expand Up @@ -174,6 +186,16 @@ def query=(query)
@query = query
end

# Custom attribute writer method with validation
# @param states [Object] Object to be assigned
# @!visibility private
def states=(states)
if !states.nil? && states.length > 20
fail ArgumentError, 'invalid value for "states", number of items must be less than or equal to 20.'
end
@states = states
end

# Custom attribute writer method with validation
# @param team_ids [Object] Object to be assigned
# @!visibility private
Expand Down Expand Up @@ -225,6 +247,7 @@ def ==(o)
order_by == o.order_by &&
persona == o.persona &&
query == o.query &&
states == o.states &&
team_ids == o.team_ids &&
to == o.to &&
track == o.track &&
Expand All @@ -235,7 +258,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[assignee_ids, from, order_by, persona, query, team_ids, to, track, additional_properties].hash
[assignee_ids, from, order_by, persona, query, states, team_ids, to, track, additional_properties].hash
end
end
end
Loading