openapi: make explicit types for returned IDs

This commit is contained in:
Quaternions 2025-04-02 13:57:41 -07:00
parent 60b5dd8975
commit c8296c7833
Signed by: Quaternions
GPG Key ID: D0DF5964F79AC131
2 changed files with 36 additions and 12 deletions

@ -246,7 +246,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/Id"
$ref: "#/components/schemas/ScriptPolicyID"
default:
description: General Error
content:
@ -320,7 +320,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/Id"
$ref: "#/components/schemas/ScriptID"
default:
description: General Error
content:
@ -392,12 +392,20 @@ components:
minimum: 1
maximum: 100
schemas:
Id:
ScriptID:
required:
- ID
- ScriptID
type: object
properties:
ID:
ScriptID:
type: integer
format: int64
ScriptPolicyID:
required:
- ScriptPolicyID
type: object
properties:
ScriptPolicyID:
type: integer
format: int64
MapfixCreate:

@ -209,7 +209,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/Id"
$ref: "#/components/schemas/OperationID"
default:
description: General Error
content:
@ -520,7 +520,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/Id"
$ref: "#/components/schemas/OperationID"
default:
description: General Error
content:
@ -831,7 +831,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/Id"
$ref: "#/components/schemas/ScriptPolicyID"
default:
description: General Error
content:
@ -966,7 +966,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/Id"
$ref: "#/components/schemas/ScriptID"
default:
description: General Error
content:
@ -1106,12 +1106,28 @@ components:
minimum: 1
maximum: 100
schemas:
Id:
OperationID:
required:
- ID
- OperationID
type: object
properties:
ID:
OperationID:
type: integer
format: int32
ScriptID:
required:
- ScriptID
type: object
properties:
ScriptID:
type: integer
format: int64
ScriptPolicyID:
required:
- ScriptPolicyID
type: object
properties:
ScriptPolicyID:
type: integer
format: int64
Roles: