Skip to content
Merged
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
7 changes: 7 additions & 0 deletions specs/policy/attributes/attributes.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,13 @@ components:
- SORT_DIRECTION_UNSPECIFIED
- SORT_DIRECTION_ASC
- SORT_DIRECTION_DESC
description: |-
Sorting direction shared across list APIs.
Notes:
- When a sort field is provided, UNSPECIFIED is treated as ASC.
- When the 'sort' field is omitted or the chosen sort 'field' is UNSPECIFIED,
the endpoint's request message defines the default ordering; see the
specific List* request docs.
policy.SourceType:
type: string
title: SourceType
Expand Down
7 changes: 7 additions & 0 deletions specs/policy/namespaces/namespaces.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,13 @@ components:
- SORT_DIRECTION_UNSPECIFIED
- SORT_DIRECTION_ASC
- SORT_DIRECTION_DESC
description: |-
Sorting direction shared across list APIs.
Notes:
- When a sort field is provided, UNSPECIFIED is treated as ASC.
- When the 'sort' field is omitted or the chosen sort 'field' is UNSPECIFIED,
the endpoint's request message defines the default ordering; see the
specific List* request docs.
policy.SourceType:
type: string
title: SourceType
Expand Down
7 changes: 7 additions & 0 deletions specs/policy/selectors.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ components:
- SORT_DIRECTION_UNSPECIFIED
- SORT_DIRECTION_ASC
- SORT_DIRECTION_DESC
description: |-
Sorting direction shared across list APIs.
Notes:
- When a sort field is provided, UNSPECIFIED is treated as ASC.
- When the 'sort' field is omitted or the chosen sort 'field' is UNSPECIFIED,
the endpoint's request message defines the default ordering; see the
specific List* request docs.
policy.AttributeDefinitionSelector:
type: object
properties:
Expand Down
35 changes: 35 additions & 0 deletions specs/policy/subjectmapping/subject_mapping.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,13 @@ components:
- SORT_DIRECTION_UNSPECIFIED
- SORT_DIRECTION_ASC
- SORT_DIRECTION_DESC
description: |-
Sorting direction shared across list APIs.
Notes:
- When a sort field is provided, UNSPECIFIED is treated as ASC.
- When the 'sort' field is omitted or the chosen sort 'field' is UNSPECIFIED,
the endpoint's request message defines the default ordering; see the
specific List* request docs.
policy.SourceType:
type: string
title: SourceType
Expand All @@ -501,6 +508,13 @@ components:
- SUBJECT_MAPPING_OPERATOR_ENUM_IN
- SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN
- SUBJECT_MAPPING_OPERATOR_ENUM_IN_CONTAINS
policy.subjectmapping.SortSubjectConditionSetsType:
type: string
title: SortSubjectConditionSetsType
enum:
- SORT_SUBJECT_CONDITION_SETS_TYPE_UNSPECIFIED
- SORT_SUBJECT_CONDITION_SETS_TYPE_CREATED_AT
- SORT_SUBJECT_CONDITION_SETS_TYPE_UPDATED_AT
policy.subjectmapping.SortSubjectMappingsType:
type: string
title: SortSubjectMappingsType
Expand Down Expand Up @@ -1546,6 +1560,16 @@ components:
title: pagination
description: Optional
$ref: '#/components/schemas/policy.PageRequest'
sort:
type: array
items:
$ref: '#/components/schemas/policy.subjectmapping.SubjectConditionSetsSort'
title: sort
maxItems: 1
description: |-
Optional - CONSTRAINT: max 1 item
Default ordering when omitted or when the first entry's field is UNSPECIFIED:
created_at DESC, then id ASC (tie-breaker).
title: ListSubjectConditionSetsRequest
additionalProperties: false
policy.subjectmapping.ListSubjectConditionSetsResponse:
Expand Down Expand Up @@ -1641,6 +1665,17 @@ components:
$ref: '#/components/schemas/common.MetadataMutable'
title: SubjectConditionSetCreate
additionalProperties: false
policy.subjectmapping.SubjectConditionSetsSort:
type: object
properties:
field:
title: field
$ref: '#/components/schemas/policy.subjectmapping.SortSubjectConditionSetsType'
direction:
title: direction
$ref: '#/components/schemas/policy.SortDirection'
title: SubjectConditionSetsSort
additionalProperties: false
policy.subjectmapping.SubjectMappingsSort:
type: object
properties:
Expand Down
Loading