Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: openapi enum type to string #3360

Merged
merged 2 commits into from
Aug 8, 2024
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
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Delete unnecessary hosted tools
run: rm -rf /opt/hostedtoolcache
- name: Run Unit Tests
uses: dagger/dagger-for-github@v6
with:
Expand Down
1 change: 1 addition & 0 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ plugins:
- version=1.47.0
- fq_schema_naming=false
- default_response=false
- enum_type=string
- title=api
- description=

130 changes: 110 additions & 20 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,15 @@ paths:
- name: method
in: query
schema:
type: integer
enum:
- METHOD_NONE
- METHOD_TOKEN
- METHOD_OIDC
- METHOD_KUBERNETES
- METHOD_GITHUB
- METHOD_JWT
- METHOD_CLOUD
type: string
format: enum
- name: limit
in: query
Expand Down Expand Up @@ -1328,7 +1336,15 @@ components:
id:
type: string
method:
type: integer
enum:
- METHOD_NONE
- METHOD_TOKEN
- METHOD_OIDC
- METHOD_KUBERNETES
- METHOD_GITHUB
- METHOD_JWT
- METHOD_CLOUD
type: string
format: enum
expiresAt:
type: string
Expand Down Expand Up @@ -1379,7 +1395,12 @@ components:
enabled:
type: boolean
reason:
type: integer
enum:
- UNKNOWN_EVALUATION_REASON
- FLAG_DISABLED_EVALUATION_REASON
- MATCH_EVALUATION_REASON
- DEFAULT_EVALUATION_REASON
type: string
format: enum
requestId:
type: string
Expand Down Expand Up @@ -1418,7 +1439,14 @@ components:
segmentKey:
type: string
type:
type: integer
enum:
- UNKNOWN_COMPARISON_TYPE
- STRING_COMPARISON_TYPE
- NUMBER_COMPARISON_TYPE
- BOOLEAN_COMPARISON_TYPE
- DATETIME_COMPARISON_TYPE
- ENTITY_ID_COMPARISON_TYPE
type: string
format: enum
property:
type: string
Expand Down Expand Up @@ -1446,7 +1474,14 @@ components:
segmentKey:
type: string
type:
type: integer
enum:
- UNKNOWN_COMPARISON_TYPE
- STRING_COMPARISON_TYPE
- NUMBER_COMPARISON_TYPE
- BOOLEAN_COMPARISON_TYPE
- DATETIME_COMPARISON_TYPE
- ENTITY_ID_COMPARISON_TYPE
type: string
format: enum
property:
type: string
Expand Down Expand Up @@ -1493,7 +1528,10 @@ components:
namespaceKey:
type: string
type:
type: integer
enum:
- VARIANT_FLAG_TYPE
- BOOLEAN_FLAG_TYPE
type: string
format: enum
metadata:
type: object
Expand Down Expand Up @@ -1546,7 +1584,10 @@ components:
items:
type: string
segmentOperator:
type: integer
enum:
- OR_SEGMENT_OPERATOR
- AND_SEGMENT_OPERATOR
type: string
format: enum
CreateSegmentRequest:
required:
Expand All @@ -1562,7 +1603,10 @@ components:
description:
type: string
matchType:
type: integer
enum:
- ALL_MATCH_TYPE
- ANY_MATCH_TYPE
type: string
format: enum
namespaceKey:
type: string
Expand Down Expand Up @@ -1632,7 +1676,10 @@ components:
namespaceKey:
type: string
reason:
type: integer
enum:
- UNKNOWN_ERROR_EVALUATION_REASON
- NOT_FOUND_ERROR_EVALUATION_REASON
type: string
format: enum
EvaluateFlagRequest:
type: object
Expand All @@ -1649,7 +1696,12 @@ components:
key:
type: string
reason:
type: integer
enum:
- UNKNOWN
- DISABLED
- TARGETING_MATCH
- DEFAULT
type: string
format: enum
variant:
type: string
Expand Down Expand Up @@ -1683,7 +1735,11 @@ components:
type: object
properties:
type:
type: integer
enum:
- VARIANT_EVALUATION_RESPONSE_TYPE
- BOOLEAN_EVALUATION_RESPONSE_TYPE
- ERROR_EVALUATION_RESPONSE_TYPE
type: string
format: enum
booleanResponse:
$ref: '#/components/schemas/BooleanEvaluationResponse'
Expand Down Expand Up @@ -1715,7 +1771,10 @@ components:
namespaceKey:
type: string
type:
type: integer
enum:
- VARIANT_FLAG_TYPE
- BOOLEAN_FLAG_TYPE
type: string
format: enum
defaultVariant:
$ref: '#/components/schemas/Variant'
Expand Down Expand Up @@ -1831,7 +1890,11 @@ components:
flagKey:
type: string
type:
type: integer
enum:
- UNKNOWN_ROLLOUT_TYPE
- SEGMENT_ROLLOUT_TYPE
- THRESHOLD_ROLLOUT_TYPE
type: string
format: enum
rank:
type: integer
Expand Down Expand Up @@ -1872,7 +1935,10 @@ components:
items:
type: string
segmentOperator:
type: integer
enum:
- OR_SEGMENT_OPERATOR
- AND_SEGMENT_OPERATOR
type: string
format: enum
RolloutThreshold:
type: object
Expand Down Expand Up @@ -1911,7 +1977,10 @@ components:
items:
type: string
segmentOperator:
type: integer
enum:
- OR_SEGMENT_OPERATOR
- AND_SEGMENT_OPERATOR
type: string
format: enum
RuleList:
type: object
Expand Down Expand Up @@ -1945,7 +2014,10 @@ components:
items:
$ref: '#/components/schemas/Constraint'
matchType:
type: integer
enum:
- ALL_MATCH_TYPE
- ANY_MATCH_TYPE
type: string
format: enum
namespaceKey:
type: string
Expand Down Expand Up @@ -1973,7 +2045,14 @@ components:
segmentKey:
type: string
type:
type: integer
enum:
- UNKNOWN_COMPARISON_TYPE
- STRING_COMPARISON_TYPE
- NUMBER_COMPARISON_TYPE
- BOOLEAN_COMPARISON_TYPE
- DATETIME_COMPARISON_TYPE
- ENTITY_ID_COMPARISON_TYPE
type: string
format: enum
property:
type: string
Expand Down Expand Up @@ -2065,7 +2144,10 @@ components:
items:
type: string
segmentOperator:
type: integer
enum:
- OR_SEGMENT_OPERATOR
- AND_SEGMENT_OPERATOR
type: string
format: enum
UpdateSegmentRequest:
required:
Expand All @@ -2080,7 +2162,10 @@ components:
description:
type: string
matchType:
type: integer
enum:
- ALL_MATCH_TYPE
- ANY_MATCH_TYPE
type: string
format: enum
namespaceKey:
type: string
Expand Down Expand Up @@ -2136,7 +2221,12 @@ components:
items:
type: string
reason:
type: integer
enum:
- UNKNOWN_EVALUATION_REASON
- FLAG_DISABLED_EVALUATION_REASON
- MATCH_EVALUATION_REASON
- DEFAULT_EVALUATION_REASON
type: string
format: enum
variantKey:
type: string
Expand Down
Loading