Skip to content

Commit e71da1f

Browse files
committed
added constraint for api-server
1 parent f0e22e3 commit e71da1f

File tree

3 files changed

+210
-59
lines changed

3 files changed

+210
-59
lines changed

services/api-server/openapi.json

Lines changed: 203 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -9788,6 +9788,13 @@
97889788
}
97899789
},
97909790
"type": "object",
9791+
"required": [
9792+
"first",
9793+
"last",
9794+
"self",
9795+
"next",
9796+
"prev"
9797+
],
97919798
"title": "Links"
97929799
},
97939800
"LogLink": {
@@ -9955,23 +9962,43 @@
99559962
"title": "Items"
99569963
},
99579964
"total": {
9958-
"type": "integer",
9959-
"minimum": 0,
9965+
"anyOf": [
9966+
{
9967+
"type": "integer",
9968+
"minimum": 0
9969+
},
9970+
{
9971+
"type": "null"
9972+
}
9973+
],
99609974
"title": "Total"
99619975
},
99629976
"limit": {
9963-
"type": "integer",
9964-
"minimum": 1,
9977+
"anyOf": [
9978+
{
9979+
"type": "integer",
9980+
"minimum": 1
9981+
},
9982+
{
9983+
"type": "null"
9984+
}
9985+
],
99659986
"title": "Limit"
99669987
},
99679988
"offset": {
9968-
"type": "integer",
9969-
"minimum": 0,
9989+
"anyOf": [
9990+
{
9991+
"type": "integer",
9992+
"minimum": 0
9993+
},
9994+
{
9995+
"type": "null"
9996+
}
9997+
],
99709998
"title": "Offset"
99719999
},
997210000
"links": {
9973-
"$ref": "#/components/schemas/Links",
9974-
"readOnly": true
10001+
"$ref": "#/components/schemas/Links"
997510002
}
997610003
},
997710004
"type": "object",
@@ -10012,23 +10039,43 @@
1001210039
"title": "Items"
1001310040
},
1001410041
"total": {
10015-
"type": "integer",
10016-
"minimum": 0,
10042+
"anyOf": [
10043+
{
10044+
"type": "integer",
10045+
"minimum": 0
10046+
},
10047+
{
10048+
"type": "null"
10049+
}
10050+
],
1001710051
"title": "Total"
1001810052
},
1001910053
"limit": {
10020-
"type": "integer",
10021-
"minimum": 1,
10054+
"anyOf": [
10055+
{
10056+
"type": "integer",
10057+
"minimum": 1
10058+
},
10059+
{
10060+
"type": "null"
10061+
}
10062+
],
1002210063
"title": "Limit"
1002310064
},
1002410065
"offset": {
10025-
"type": "integer",
10026-
"minimum": 0,
10066+
"anyOf": [
10067+
{
10068+
"type": "integer",
10069+
"minimum": 0
10070+
},
10071+
{
10072+
"type": "null"
10073+
}
10074+
],
1002710075
"title": "Offset"
1002810076
},
1002910077
"links": {
10030-
"$ref": "#/components/schemas/Links",
10031-
"readOnly": true
10078+
"$ref": "#/components/schemas/Links"
1003210079
}
1003310080
},
1003410081
"type": "object",
@@ -10051,23 +10098,43 @@
1005110098
"title": "Items"
1005210099
},
1005310100
"total": {
10054-
"type": "integer",
10055-
"minimum": 0,
10101+
"anyOf": [
10102+
{
10103+
"type": "integer",
10104+
"minimum": 0
10105+
},
10106+
{
10107+
"type": "null"
10108+
}
10109+
],
1005610110
"title": "Total"
1005710111
},
1005810112
"limit": {
10059-
"type": "integer",
10060-
"minimum": 1,
10113+
"anyOf": [
10114+
{
10115+
"type": "integer",
10116+
"minimum": 1
10117+
},
10118+
{
10119+
"type": "null"
10120+
}
10121+
],
1006110122
"title": "Limit"
1006210123
},
1006310124
"offset": {
10064-
"type": "integer",
10065-
"minimum": 0,
10125+
"anyOf": [
10126+
{
10127+
"type": "integer",
10128+
"minimum": 0
10129+
},
10130+
{
10131+
"type": "null"
10132+
}
10133+
],
1006610134
"title": "Offset"
1006710135
},
1006810136
"links": {
10069-
"$ref": "#/components/schemas/Links",
10070-
"readOnly": true
10137+
"$ref": "#/components/schemas/Links"
1007110138
}
1007210139
},
1007310140
"type": "object",
@@ -10090,23 +10157,43 @@
1009010157
"title": "Items"
1009110158
},
1009210159
"total": {
10093-
"type": "integer",
10094-
"minimum": 0,
10160+
"anyOf": [
10161+
{
10162+
"type": "integer",
10163+
"minimum": 0
10164+
},
10165+
{
10166+
"type": "null"
10167+
}
10168+
],
1009510169
"title": "Total"
1009610170
},
1009710171
"limit": {
10098-
"type": "integer",
10099-
"minimum": 1,
10172+
"anyOf": [
10173+
{
10174+
"type": "integer",
10175+
"minimum": 1
10176+
},
10177+
{
10178+
"type": "null"
10179+
}
10180+
],
1010010181
"title": "Limit"
1010110182
},
1010210183
"offset": {
10103-
"type": "integer",
10104-
"minimum": 0,
10184+
"anyOf": [
10185+
{
10186+
"type": "integer",
10187+
"minimum": 0
10188+
},
10189+
{
10190+
"type": "null"
10191+
}
10192+
],
1010510193
"title": "Offset"
1010610194
},
1010710195
"links": {
10108-
"$ref": "#/components/schemas/Links",
10109-
"readOnly": true
10196+
"$ref": "#/components/schemas/Links"
1011010197
}
1011110198
},
1011210199
"type": "object",
@@ -10129,23 +10216,43 @@
1012910216
"title": "Items"
1013010217
},
1013110218
"total": {
10132-
"type": "integer",
10133-
"minimum": 0,
10219+
"anyOf": [
10220+
{
10221+
"type": "integer",
10222+
"minimum": 0
10223+
},
10224+
{
10225+
"type": "null"
10226+
}
10227+
],
1013410228
"title": "Total"
1013510229
},
1013610230
"limit": {
10137-
"type": "integer",
10138-
"minimum": 1,
10231+
"anyOf": [
10232+
{
10233+
"type": "integer",
10234+
"minimum": 1
10235+
},
10236+
{
10237+
"type": "null"
10238+
}
10239+
],
1013910240
"title": "Limit"
1014010241
},
1014110242
"offset": {
10142-
"type": "integer",
10143-
"minimum": 0,
10243+
"anyOf": [
10244+
{
10245+
"type": "integer",
10246+
"minimum": 0
10247+
},
10248+
{
10249+
"type": "null"
10250+
}
10251+
],
1014410252
"title": "Offset"
1014510253
},
1014610254
"links": {
10147-
"$ref": "#/components/schemas/Links",
10148-
"readOnly": true
10255+
"$ref": "#/components/schemas/Links"
1014910256
}
1015010257
},
1015110258
"type": "object",
@@ -10168,23 +10275,43 @@
1016810275
"title": "Items"
1016910276
},
1017010277
"total": {
10171-
"type": "integer",
10172-
"minimum": 0,
10278+
"anyOf": [
10279+
{
10280+
"type": "integer",
10281+
"minimum": 0
10282+
},
10283+
{
10284+
"type": "null"
10285+
}
10286+
],
1017310287
"title": "Total"
1017410288
},
1017510289
"limit": {
10176-
"type": "integer",
10177-
"minimum": 1,
10290+
"anyOf": [
10291+
{
10292+
"type": "integer",
10293+
"minimum": 1
10294+
},
10295+
{
10296+
"type": "null"
10297+
}
10298+
],
1017810299
"title": "Limit"
1017910300
},
1018010301
"offset": {
10181-
"type": "integer",
10182-
"minimum": 0,
10302+
"anyOf": [
10303+
{
10304+
"type": "integer",
10305+
"minimum": 0
10306+
},
10307+
{
10308+
"type": "null"
10309+
}
10310+
],
1018310311
"title": "Offset"
1018410312
},
1018510313
"links": {
10186-
"$ref": "#/components/schemas/Links",
10187-
"readOnly": true
10314+
"$ref": "#/components/schemas/Links"
1018810315
}
1018910316
},
1019010317
"type": "object",
@@ -10207,23 +10334,43 @@
1020710334
"title": "Items"
1020810335
},
1020910336
"total": {
10210-
"type": "integer",
10211-
"minimum": 0,
10337+
"anyOf": [
10338+
{
10339+
"type": "integer",
10340+
"minimum": 0
10341+
},
10342+
{
10343+
"type": "null"
10344+
}
10345+
],
1021210346
"title": "Total"
1021310347
},
1021410348
"limit": {
10215-
"type": "integer",
10216-
"minimum": 1,
10349+
"anyOf": [
10350+
{
10351+
"type": "integer",
10352+
"minimum": 1
10353+
},
10354+
{
10355+
"type": "null"
10356+
}
10357+
],
1021710358
"title": "Limit"
1021810359
},
1021910360
"offset": {
10220-
"type": "integer",
10221-
"minimum": 0,
10361+
"anyOf": [
10362+
{
10363+
"type": "integer",
10364+
"minimum": 0
10365+
},
10366+
{
10367+
"type": "null"
10368+
}
10369+
],
1022210370
"title": "Offset"
1022310371
},
1022410372
"links": {
10225-
"$ref": "#/components/schemas/Links",
10226-
"readOnly": true
10373+
"$ref": "#/components/schemas/Links"
1022710374
}
1022810375
},
1022910376
"type": "object",

services/api-server/requirements/_base.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,16 @@ fastapi==0.116.1
176176
# via
177177
# -r requirements/../../../packages/service-library/requirements/_fastapi.in
178178
# fastapi-lifespan-manager
179-
# fastapi-pagination
180179
fastapi-cli==0.0.8
181180
# via fastapi
182181
fastapi-cloud-cli==0.1.5
183182
# via fastapi-cli
184183
fastapi-lifespan-manager==0.1.4
185184
# via -r requirements/../../../packages/service-library/requirements/_fastapi.in
186-
fastapi-pagination==0.14.0
187-
# via -r requirements/_base.in
185+
fastapi-pagination==0.12.34
186+
# via
187+
# -c requirements/./constraints.txt
188+
# -r requirements/_base.in
188189
faststream==0.5.33
189190
# via
190191
# -r requirements/../../../packages/service-library/requirements/_base.in

0 commit comments

Comments
 (0)