File tree Expand file tree Collapse file tree 2 files changed +11
-28
lines changed
apps/workspace-engine/oapi Expand file tree Collapse file tree 2 files changed +11
-28
lines changed Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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 },
You can’t perform that action at this time.
0 commit comments