Skip to content

Commit

Permalink
Swagger - Add minimum = 1 to Camera.BinX, BinY, MaxBinX and MaxBinY p…
Browse files Browse the repository at this point in the history
…roperties.
  • Loading branch information
Peter-Simpson committed Oct 4, 2024
1 parent 0be62fc commit 16d34df
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions Swagger/AlpacaDeviceAPI_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ paths:
- Camera Specific Methods
responses:
'200':
$ref: '#/components/responses/IntResponse'
$ref: '#/components/responses/IntMinimum1Response'
'400':
$ref: '#/components/responses/400'
'500':
Expand Down Expand Up @@ -527,6 +527,7 @@ paths:
type: integer
format: int32
example: 1
minimum: 1
required:
- BinX
'/camera/{device_number}/biny':
Expand All @@ -541,7 +542,7 @@ paths:
- Camera Specific Methods
responses:
'200':
$ref: '#/components/responses/IntResponse'
$ref: '#/components/responses/IntMinimum1Response'
'400':
$ref: '#/components/responses/400'
'500':
Expand Down Expand Up @@ -572,6 +573,7 @@ paths:
type: integer
format: int32
example: 1
minimum: 1
required:
- BinY
'/camera/{device_number}/camerastate':
Expand Down Expand Up @@ -1428,7 +1430,7 @@ paths:
- Camera Specific Methods
responses:
'200':
$ref: '#/components/responses/IntResponse'
$ref: '#/components/responses/IntMinimum1Response'
'400':
$ref: '#/components/responses/400'
'500':
Expand All @@ -1445,7 +1447,7 @@ paths:
- Camera Specific Methods
responses:
'200':
$ref: '#/components/responses/IntResponse'
$ref: '#/components/responses/IntMinimum1Response'
'400':
$ref: '#/components/responses/400'
'500':
Expand Down Expand Up @@ -6160,6 +6162,19 @@ components:
type: integer
format: int32
description: Returned integer value
IntMinimum1Response:
description: Transaction complete or exception.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/AlpacaResponse'
- properties:
Value:
type: integer
format: int32
minimum: 1
description: Returned integer value
IntArrayResponse:
description: Transaction complete or exception.
content:
Expand Down

0 comments on commit 16d34df

Please sign in to comment.