Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ZohebShaikh committed Feb 27, 2025
1 parent 545e066 commit 55b473c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docs/reference/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,34 @@ components:
- plans
title: PlanResponse
type: object
ScratchResponse:
additionalProperties: false
description: State of the scratch area.
properties:
is_dirty:
description: Does the package have uncommitted changes
items:
type: boolean
title: Is Dirty
type: array
package_name:
description: Name of the package
items:
type: string
title: Package Name
type: array
version:
description: Version of the package
items:
type: string
title: Version
type: array
required:
- package_name
- version
- is_dirty
title: ScratchResponse
type: object
StateChangeRequest:
additionalProperties: false
description: Request to change the state of the worker.
Expand Down Expand Up @@ -353,6 +381,17 @@ paths:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Get Plan By Name
/scratch:
get:
operationId: get_scratch_packages_scratch_get
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ScratchResponse'
description: Successful Response
summary: Get Scratch Packages
/tasks:
get:
description: 'Retrieve tasks based on their status.
Expand Down

0 comments on commit 55b473c

Please sign in to comment.