Fix OpenAPI types
Signed-off-by: solimant <solimant@users.noreply.github.com>
This commit is contained in:
@@ -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: |-
|
||||
|
||||
+2
-1
@@ -24,5 +24,6 @@ import { SerializedTask } from '../models/SerializedTask.model';
|
||||
* @public
|
||||
*/
|
||||
export interface ListTasksResponse {
|
||||
tasks?: Array<SerializedTask>;
|
||||
tasks: Array<SerializedTask>;
|
||||
totalTasks?: number;
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
*/
|
||||
|
||||
+1
-1
@@ -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'],
|
||||
|
||||
+2
-1
@@ -24,5 +24,6 @@ import { SerializedTask } from '../models/SerializedTask.model';
|
||||
* @public
|
||||
*/
|
||||
export interface ListTasksResponse {
|
||||
tasks?: Array<SerializedTask>;
|
||||
tasks: Array<SerializedTask>;
|
||||
totalTasks?: number;
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
*/
|
||||
|
||||
+1
-1
@@ -24,5 +24,5 @@ import { EntityMeta } from '../models/EntityMeta.model';
|
||||
* @public
|
||||
*/
|
||||
export interface TemplateInfoEntity {
|
||||
metadata?: EntityMeta;
|
||||
metadata: EntityMeta;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user