Skip to content

Commit fa8e71b

Browse files
author
appscisumup
committed
chore: synced local 'openapi.json' with remote 'specs/openapi.json'
1 parent c798547 commit fa8e71b

1 file changed

Lines changed: 60 additions & 157 deletions

File tree

openapi.json

Lines changed: 60 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -5312,6 +5312,11 @@
53125312
"schema": {
53135313
"$ref": "#/components/schemas/CreateReaderCheckoutError"
53145314
}
5315+
},
5316+
"application/problem+json": {
5317+
"schema": {
5318+
"$ref": "#/components/schemas/Problem"
5319+
}
53155320
}
53165321
}
53175322
},
@@ -5322,45 +5327,40 @@
53225327
"schema": {
53235328
"$ref": "#/components/schemas/CreateReaderCheckoutError"
53245329
}
5325-
}
5326-
}
5327-
},
5328-
"422": {
5329-
"description": "Response when given params (or one of them) are invalid",
5330-
"content": {
5331-
"application/json": {
5330+
},
5331+
"application/problem+json": {
53325332
"schema": {
5333-
"$ref": "#/components/schemas/CreateReaderCheckoutUnprocessableEntity"
5333+
"$ref": "#/components/schemas/Problem"
53345334
}
53355335
}
53365336
}
53375337
},
5338-
"500": {
5339-
"description": "Internal Server Error",
5338+
"404": {
5339+
"description": "Response when given reader is not found",
53405340
"content": {
53415341
"application/json": {
53425342
"schema": {
5343-
"$ref": "#/components/schemas/CreateReaderCheckoutError"
5343+
"$ref": "#/components/schemas/NotFound"
53445344
}
5345-
}
5346-
}
5347-
},
5348-
"502": {
5349-
"description": "Bad Gateway",
5350-
"content": {
5351-
"application/json": {
5345+
},
5346+
"application/problem+json": {
53525347
"schema": {
5353-
"$ref": "#/components/schemas/CreateReaderCheckoutError"
5348+
"$ref": "#/components/schemas/Problem"
53545349
}
53555350
}
53565351
}
53575352
},
5358-
"504": {
5359-
"description": "Gateway Timeout",
5353+
"422": {
5354+
"description": "Response when given params (or one of them) are invalid",
53605355
"content": {
53615356
"application/json": {
53625357
"schema": {
5363-
"$ref": "#/components/schemas/CreateReaderCheckoutError"
5358+
"$ref": "#/components/schemas/CreateReaderCheckoutUnprocessableEntity"
5359+
}
5360+
},
5361+
"application/problem+json": {
5362+
"schema": {
5363+
"$ref": "#/components/schemas/Problem"
53645364
}
53655365
}
53665366
}
@@ -5459,6 +5459,11 @@
54595459
"schema": {
54605460
"$ref": "#/components/schemas/BadRequest"
54615461
}
5462+
},
5463+
"application/problem+json": {
5464+
"schema": {
5465+
"$ref": "#/components/schemas/Problem"
5466+
}
54625467
}
54635468
}
54645469
},
@@ -5469,6 +5474,11 @@
54695474
"schema": {
54705475
"$ref": "#/components/schemas/Unauthorized"
54715476
}
5477+
},
5478+
"application/problem+json": {
5479+
"schema": {
5480+
"$ref": "#/components/schemas/Problem"
5481+
}
54725482
}
54735483
}
54745484
},
@@ -5479,35 +5489,10 @@
54795489
"schema": {
54805490
"$ref": "#/components/schemas/NotFound"
54815491
}
5482-
}
5483-
}
5484-
},
5485-
"500": {
5486-
"description": "Generic error response for backend failure",
5487-
"content": {
5488-
"application/json": {
5489-
"schema": {
5490-
"$ref": "#/components/schemas/InternalServerError"
5491-
}
5492-
}
5493-
}
5494-
},
5495-
"502": {
5496-
"description": "Generic error response for an upstream service failure",
5497-
"content": {
5498-
"application/json": {
5499-
"schema": {
5500-
"$ref": "#/components/schemas/BadGateway"
5501-
}
5502-
}
5503-
}
5504-
},
5505-
"504": {
5506-
"description": "Generic error response for an upstream service timeout",
5507-
"content": {
5508-
"application/json": {
5492+
},
5493+
"application/problem+json": {
55095494
"schema": {
5510-
"$ref": "#/components/schemas/GatewayTimeout"
5495+
"$ref": "#/components/schemas/Problem"
55115496
}
55125497
}
55135498
}
@@ -5586,6 +5571,11 @@
55865571
"schema": {
55875572
"$ref": "#/components/schemas/CreateReaderTerminateError"
55885573
}
5574+
},
5575+
"application/problem+json": {
5576+
"schema": {
5577+
"$ref": "#/components/schemas/Problem"
5578+
}
55895579
}
55905580
}
55915581
},
@@ -5596,45 +5586,40 @@
55965586
"schema": {
55975587
"$ref": "#/components/schemas/CreateReaderTerminateError"
55985588
}
5599-
}
5600-
}
5601-
},
5602-
"422": {
5603-
"description": "Response when given params (or one of them) are invalid",
5604-
"content": {
5605-
"application/json": {
5589+
},
5590+
"application/problem+json": {
56065591
"schema": {
5607-
"$ref": "#/components/schemas/CreateReaderTerminateUnprocessableEntity"
5592+
"$ref": "#/components/schemas/Problem"
56085593
}
56095594
}
56105595
}
56115596
},
5612-
"500": {
5613-
"description": "Internal Server Error",
5597+
"404": {
5598+
"description": "Response when given reader is not found",
56145599
"content": {
56155600
"application/json": {
56165601
"schema": {
5617-
"$ref": "#/components/schemas/CreateReaderTerminateError"
5602+
"$ref": "#/components/schemas/NotFound"
56185603
}
5619-
}
5620-
}
5621-
},
5622-
"502": {
5623-
"description": "Bad Gateway",
5624-
"content": {
5625-
"application/json": {
5604+
},
5605+
"application/problem+json": {
56265606
"schema": {
5627-
"$ref": "#/components/schemas/CreateReaderTerminateError"
5607+
"$ref": "#/components/schemas/Problem"
56285608
}
56295609
}
56305610
}
56315611
},
5632-
"504": {
5633-
"description": "Gateway Timeout",
5612+
"422": {
5613+
"description": "Response when given params (or one of them) are invalid",
56345614
"content": {
56355615
"application/json": {
56365616
"schema": {
5637-
"$ref": "#/components/schemas/CreateReaderTerminateError"
5617+
"$ref": "#/components/schemas/CreateReaderTerminateUnprocessableEntity"
5618+
}
5619+
},
5620+
"application/problem+json": {
5621+
"schema": {
5622+
"$ref": "#/components/schemas/Problem"
56385623
}
56395624
}
56405625
}
@@ -9228,33 +9213,6 @@
92289213
],
92299214
"title": "CreateReaderTerminateUnprocessableEntity"
92309215
},
9231-
"BadGateway": {
9232-
"description": "502 Bad Gateway",
9233-
"type": "object",
9234-
"properties": {
9235-
"errors": {
9236-
"type": "object",
9237-
"properties": {
9238-
"detail": {
9239-
"description": "Fuller message giving context to error",
9240-
"type": "string"
9241-
}
9242-
},
9243-
"required": [
9244-
"detail"
9245-
]
9246-
}
9247-
},
9248-
"example": {
9249-
"errors": {
9250-
"detail": "Bad Gateway"
9251-
}
9252-
},
9253-
"required": [
9254-
"errors"
9255-
],
9256-
"title": "BadGateway"
9257-
},
92589216
"CreateReaderTerminateError": {
92599217
"description": "Error description",
92609218
"type": "object",
@@ -9346,33 +9304,6 @@
93469304
],
93479305
"title": "CreateReaderCheckoutResponse"
93489306
},
9349-
"GatewayTimeout": {
9350-
"description": "504 Gateway Timeout",
9351-
"type": "object",
9352-
"properties": {
9353-
"errors": {
9354-
"type": "object",
9355-
"properties": {
9356-
"detail": {
9357-
"description": "Fuller message giving context to error",
9358-
"type": "string"
9359-
}
9360-
},
9361-
"required": [
9362-
"detail"
9363-
]
9364-
}
9365-
},
9366-
"example": {
9367-
"errors": {
9368-
"detail": "Gateway Timeout"
9369-
}
9370-
},
9371-
"required": [
9372-
"errors"
9373-
],
9374-
"title": "GatewayTimeout"
9375-
},
93769307
"Unauthorized": {
93779308
"description": "401 Unauthorized",
93789309
"type": "object",
@@ -9385,56 +9316,28 @@
93859316
"type": "string"
93869317
},
93879318
"type": {
9388-
"description": "Key indicating type of error",
9319+
"description": "Key indicating type of error. Present only for typed 401 responses (e.g. invalid token, invalid password). Absent for generic unauthorized responses.",
93899320
"type": "string",
93909321
"enum": [
93919322
"INVALID_ACCESS_TOKEN",
93929323
"INVALID_PASSWORD"
93939324
]
93949325
}
93959326
},
9396-
"required": [
9397-
"type"
9398-
]
9399-
}
9400-
},
9401-
"example": {
9402-
"errors": {
9403-
"detail": "Invalid or expired access token",
9404-
"type": "INVALID_ACCESS_TOKEN"
9405-
}
9406-
},
9407-
"required": [
9408-
"errors"
9409-
],
9410-
"title": "Unauthorized"
9411-
},
9412-
"InternalServerError": {
9413-
"description": "500 Internal Server Error",
9414-
"type": "object",
9415-
"properties": {
9416-
"errors": {
9417-
"type": "object",
9418-
"properties": {
9419-
"detail": {
9420-
"description": "Fuller message giving context to error",
9421-
"type": "string"
9422-
}
9423-
},
94249327
"required": [
94259328
"detail"
94269329
]
94279330
}
94289331
},
94299332
"example": {
94309333
"errors": {
9431-
"detail": "Internal Server Error"
9334+
"detail": "Unauthorized"
94329335
}
94339336
},
94349337
"required": [
94359338
"errors"
94369339
],
9437-
"title": "InternalServerError"
9340+
"title": "Unauthorized"
94389341
},
94399342
"CreateReaderCheckoutRequest": {
94409343
"description": "Reader Checkout",

0 commit comments

Comments
 (0)