Fix OpenAPI types

Signed-off-by: solimant <solimant@users.noreply.github.com>
This commit is contained in:
solimant
2024-12-11 22:45:23 +00:00
parent 0976e117fa
commit e2fa65af59
8 changed files with 21 additions and 12 deletions
@@ -359,6 +359,10 @@ components:
type: array
items:
$ref: '#/components/schemas/SerializedTask'
totalTasks:
type: number
required:
- tasks
description: The response shape for the `listTasks` call to the `scaffolder-backend`
MapStringString:
type: object
@@ -640,9 +644,7 @@ components:
properties:
entity:
type: object
properties: {}
description: The decorated entity from the Catalog
additionalProperties: {}
ref:
type: string
description: An entity ref for the author of the task
@@ -800,12 +802,14 @@ components:
description: Where the template is stored, so we can resolve relative paths for things like `fetch:template` paths.
entity:
type: object
description: The Template entity.
properties:
metadata:
# come back to this one - done
$ref: '#/components/schemas/EntityMeta'
description: The metadata of the Template.
required:
- metadata
description: The Template entity.
required:
- entityRef
description: |-
@@ -24,5 +24,6 @@ import { SerializedTask } from '../models/SerializedTask.model';
* @public
*/
export interface ListTasksResponse {
tasks?: Array<SerializedTask>;
tasks: Array<SerializedTask>;
totalTasks?: number;
}
@@ -26,7 +26,7 @@ export interface TaskSpecV1beta3User {
/**
* The decorated entity from the Catalog
*/
entity?: { [key: string]: any };
entity?: any;
/**
* An entity ref for the author of the task
*/
@@ -24,5 +24,5 @@ import { EntityMeta } from '../models/EntityMeta.model';
* @public
*/
export interface TemplateInfoEntity {
metadata?: EntityMeta;
metadata: EntityMeta;
}
@@ -464,7 +464,11 @@ export const spec = {
$ref: '#/components/schemas/SerializedTask',
},
},
totalTasks: {
type: 'number',
},
},
required: ['tasks'],
description:
'The response shape for the `listTasks` call to the `scaffolder-backend`',
},
@@ -833,9 +837,7 @@ export const spec = {
properties: {
entity: {
type: 'object',
properties: {},
description: 'The decorated entity from the Catalog',
additionalProperties: {},
},
ref: {
type: 'string',
@@ -1014,13 +1016,14 @@ export const spec = {
},
entity: {
type: 'object',
description: 'The Template entity.',
properties: {
metadata: {
$ref: '#/components/schemas/EntityMeta',
description: 'The metadata of the Template.',
},
},
required: ['metadata'],
description: 'The Template entity.',
},
},
required: ['entityRef'],
@@ -24,5 +24,6 @@ import { SerializedTask } from '../models/SerializedTask.model';
* @public
*/
export interface ListTasksResponse {
tasks?: Array<SerializedTask>;
tasks: Array<SerializedTask>;
totalTasks?: number;
}
@@ -26,7 +26,7 @@ export interface TaskSpecV1beta3User {
/**
* The decorated entity from the Catalog
*/
entity?: { [key: string]: any };
entity?: any;
/**
* An entity ref for the author of the task
*/
@@ -24,5 +24,5 @@ import { EntityMeta } from '../models/EntityMeta.model';
* @public
*/
export interface TemplateInfoEntity {
metadata?: EntityMeta;
metadata: EntityMeta;
}