Skip to content

Commit dfb3c11

Browse files
chore: update oapi
1 parent 956b616 commit dfb3c11

File tree

2 files changed

+11
-28
lines changed

2 files changed

+11
-28
lines changed

apps/workspace-engine/oapi/openapi.json

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4401,37 +4401,14 @@
44014401
"content": {
44024402
"application/json": {
44034403
"schema": {
4404-
"properties": {
4405-
"items": {
4406-
"items": {
4407-
"$ref": "#/components/schemas/ResourceVariable"
4408-
},
4409-
"type": "array"
4410-
},
4411-
"limit": {
4412-
"description": "Maximum number of items returned",
4413-
"type": "integer"
4414-
},
4415-
"offset": {
4416-
"description": "Number of items skipped",
4417-
"type": "integer"
4418-
},
4419-
"total": {
4420-
"description": "Total number of items available",
4421-
"type": "integer"
4422-
}
4404+
"items": {
4405+
"$ref": "#/components/schemas/ResourceVariable"
44234406
},
4424-
"required": [
4425-
"items",
4426-
"total",
4427-
"limit",
4428-
"offset"
4429-
],
4430-
"type": "object"
4407+
"type": "array"
44314408
}
44324409
}
44334410
},
4434-
"description": "Paginated list of items"
4411+
"description": "The requested variables"
44354412
},
44364413
"400": {
44374414
"content": {

apps/workspace-engine/oapi/spec/paths/resource.jsonnet

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,13 @@ local openapi = import '../lib/openapi.libsonnet';
7979
openapi.workspaceIdParam(),
8080
openapi.resourceIdentifierParam(),
8181
],
82-
responses: openapi.paginatedResponse(openapi.schemaRef('ResourceVariable'))
82+
responses: openapi.okResponse(
83+
{
84+
type: 'array',
85+
items: openapi.schemaRef('ResourceVariable'),
86+
},
87+
'The requested variables',
88+
)
8389
+ openapi.notFoundResponse()
8490
+ openapi.badRequestResponse(),
8591
},

0 commit comments

Comments
 (0)