Skip to content

Commit

Permalink
fix: set nonCommercial and schema as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
devniel committed Aug 18, 2024
1 parent 70b42b5 commit ab2bc03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,8 @@ const justAnExample_DoNotUseThis: ClapWorkflow[] = [

custom_field: 0.042, // <-- a value curated/suggested by Clapper
},

nonCommercial: true,
schema: 'a workflow json string',
},
]
4 changes: 2 additions & 2 deletions packages/clap/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ export type ClapWorkflow = {
/**
* Whether the workflow forbids commercial usage or not
*/
nonCommercial: boolean
nonCommercial?: boolean

engine: ClapWorkflowEngine

Expand All @@ -644,7 +644,7 @@ export type ClapWorkflow = {
* This is used to visualize the workflow in our workflow editor
*
*/
schema: string
schema?: string

/**
* Inputs of the workflow (this is used to build an UI for the automatically)
Expand Down

0 comments on commit ab2bc03

Please sign in to comment.