Skip to content

Commit

Permalink
fix: update task schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse0Michael committed Jun 12, 2020
1 parent 66f88e2 commit dc16866
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ model/./assets.ts
model/./job.ts
model/./jobCreate.ts
model/./kind.ts
model/./tasks.ts
model/./task.ts
model/./version.ts
model/models.ts
tsconfig.json
4 changes: 2 additions & 2 deletions model/jobCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ import { Task } from './task';
* The task information for a workflow
*/
export class JobCreate {
'tasks'?: Task;
'tasks'?: Array<Task>;

static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "tasks",
"baseName": "tasks",
"type": "Task"
"type": "Array<Task>"
} ];

static getAttributeTypeMap() {
Expand Down
6 changes: 3 additions & 3 deletions model/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export * from './assets';
export * from './job';
export * from './jobCreate';
export * from './kind';
export * from './tasks';
export * from './task';
export * from './version';

import localVarRequest = require('request');
Expand All @@ -21,7 +21,7 @@ import { Assets } from './assets';
import { Job } from './job';
import { JobCreate } from './jobCreate';
import { Kind } from './kind';
import { Tasks } from './tasks';
import { Task } from './task';
import { Version } from './version';

/* tslint:disable:no-unused-variable */
Expand Down Expand Up @@ -50,7 +50,7 @@ let typeMap: {[index: string]: any} = {
"Assets": Assets,
"Job": Job,
"JobCreate": JobCreate,
"Tasks": Tasks,
"Task": Task,
"Version": Version,
}

Expand Down
46 changes: 46 additions & 0 deletions model/task.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* Open DAM API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { RequestFile } from '../api';

/**
* a task to perform on an asset
*/
export class Task {
/**
* The name of the task
*/
'task'?: string;
/**
* An array of arguments to use for the task, if left empty will use the results of the previous task. must match the expected arguments for the requested task.
*/
'args'?: Array<string>;

static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "task",
"baseName": "task",
"type": "string"
},
{
"name": "args",
"baseName": "args",
"type": "Array<string>"
} ];

static getAttributeTypeMap() {
return Task.attributeTypeMap;
}
}

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dc16866

Please sign in to comment.