Skip to content

Commit 2c2649b

Browse files
authored
Update kin-openapi package with changes related to request validation (#9167)
Forced merge as "license/claExpected — Waiting for status to be reported" failed to execute. All tests and verification passed.
1 parent 27bfd6f commit 2c2649b

File tree

13 files changed

+237
-198
lines changed

13 files changed

+237
-198
lines changed

api/swagger.yml

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ components:
4343
PaginationPrefix:
4444
in: query
4545
name: prefix
46+
allowEmptyValue: true
4647
description: return items prefixed with this value
4748
schema:
4849
type: string
@@ -51,6 +52,7 @@ components:
5152
in: query
5253
name: after
5354
description: return items after this value
55+
allowEmptyValue: true
5456
schema:
5557
type: string
5658

@@ -67,17 +69,19 @@ components:
6769
PaginationDelimiter:
6870
in: query
6971
name: delimiter
72+
allowEmptyValue: true
7073
description: delimiter used to group common prefixes by
7174
schema:
7275
type: string
7376

7477
SearchString:
7578
in: query
7679
name: search
80+
allowEmptyValue: true
7781
description: string for searching relevant entries
7882
schema:
7983
type: string
80-
84+
8185
IfNoneMatch:
8286
in: header
8387
name: If-None-Match
@@ -286,12 +290,12 @@ components:
286290
example: "main"
287291
sample_data:
288292
type: boolean
289-
example: "true"
290293
default: false
294+
example: true
291295
read_only:
292296
type: boolean
293-
example: "true"
294297
default: false
298+
example: true
295299

296300
PathList:
297301
type: object
@@ -934,9 +938,9 @@ components:
934938
Placeholder text to display in the username field of the login form.
935939
type: string
936940
password_ui_placeholder:
937-
description: |
938-
Placeholder text to display in the password field of the login form.
939-
type: string
941+
description: |
942+
Placeholder text to display in the password field of the login form.
943+
type: string
940944
login_url:
941945
description: primary URL to use for login.
942946
type: string
@@ -1021,7 +1025,6 @@ components:
10211025
- featureUpdates
10221026
- securityUpdates
10231027

1024-
10251028
Credentials:
10261029
type: object
10271030
required:
@@ -1271,11 +1274,11 @@ components:
12711274
type: string
12721275
blockstore_description:
12731276
type: string
1274-
1277+
12751278
StorageConfigList:
1276-
type: array
1277-
items:
1278-
$ref: "#/components/schemas/StorageConfig"
1279+
type: array
1280+
items:
1281+
$ref: "#/components/schemas/StorageConfig"
12791282

12801283
Config:
12811284
type: object
@@ -1554,6 +1557,8 @@ components:
15541557
type: boolean
15551558
default: false
15561559
example:
1560+
commit:
1561+
message: Importing collections from S3
15571562
paths:
15581563
- path: s3://my-bucket/production/collections/
15591564
destination: collections/
@@ -1857,10 +1862,10 @@ components:
18571862
type: string
18581863
description:
18591864
type: string
1860-
1865+
18611866
PullRequest:
18621867
allOf:
1863-
- $ref: '#/components/schemas/PullRequestBasic'
1868+
- $ref: "#/components/schemas/PullRequestBasic"
18641869
- required:
18651870
- status
18661871
- title
@@ -2757,7 +2762,6 @@ paths:
27572762
default:
27582763
$ref: "#/components/responses/ServerError"
27592764

2760-
27612765
/auth/users/{userId}/external/principals:
27622766
parameters:
27632767
- in: path
@@ -3759,11 +3763,13 @@ paths:
37593763
- in: query
37603764
name: since
37613765
description: Show commits more recent than a specific date-time. In case used with stop_at parameter, will stop at the first commit that meets any of the conditions.
3766+
allowEmptyValue: true
37623767
schema:
37633768
type: string
37643769
format: date-time
37653770
- in: query
37663771
name: stop_at
3772+
allowEmptyValue: true
37673773
description: A reference to stop at. In case used with since parameter, will stop at the first commit that meets any of the conditions.
37683774
schema:
37693775
type: string
@@ -3976,8 +3982,7 @@ paths:
39763982
- experimental
39773983
operationId: hardResetBranch
39783984
summary: hard reset branch
3979-
description:
3980-
Relocate branch to refer to ref. Branch must not contain
3985+
description: Relocate branch to refer to ref. Branch must not contain
39813986
uncommitted data.
39823987
parameters:
39833988
- in: query
@@ -5432,10 +5437,12 @@ paths:
54325437
- $ref: "#/components/parameters/PaginationAmount"
54335438
- in: query
54345439
name: branch
5440+
allowEmptyValue: true
54355441
schema:
54365442
type: string
54375443
- in: query
54385444
name: commit
5445+
allowEmptyValue: true
54395446
schema:
54405447
type: string
54415448
responses:
@@ -5620,7 +5627,6 @@ paths:
56205627
default:
56215628
$ref: "#/components/responses/ServerError"
56225629

5623-
56245630
/repositories/{repository}/metadata/meta_range/{meta_range}:
56255631
parameters:
56265632
- in: path
@@ -5962,7 +5968,7 @@ paths:
59625968
description: too many requests
59635969
default:
59645970
$ref: "#/components/responses/ServerError"
5965-
5971+
59665972
/repositories/{repository}/pulls:
59675973
parameters:
59685974
- in: path
@@ -6298,13 +6304,13 @@ paths:
62986304
$ref: "#/components/responses/NotImplemented"
62996305
default:
63006306
$ref: "#/components/responses/ServerError"
6301-
6307+
63026308
/oidc/callback:
63036309
get:
63046310
tags:
63056311
- auth
63066312
operationId: oauthCallback
6307-
security: [ ]
6313+
security: []
63086314
responses:
63096315
302:
63106316
description: successfully got token

0 commit comments

Comments
 (0)