Skip to content

Commit

Permalink
feat: support union types (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Aug 13, 2022
1 parent cb43802 commit e68ea1b
Show file tree
Hide file tree
Showing 8 changed files with 822 additions and 748 deletions.
13 changes: 12 additions & 1 deletion backend/openapi.yaml
Expand Up @@ -3631,7 +3631,6 @@ components:
- type: string
enum:
[
"str",
"float",
"int",
"bool",
Expand All @@ -3646,13 +3645,25 @@ components:
properties:
resource:
type: string
nullable: true

required:
- resource
- type: object
properties:
str:
type: array
items:
type: string
nullable: true
required:
- str
- type: object
properties:
list:
type: string
enum: ["str", "float", "int", "email"]
nullable: true
required:
- list
has_default:
Expand Down
2 changes: 2 additions & 0 deletions backend/src/lib.rs
Expand Up @@ -35,6 +35,8 @@ mod jobs;
mod js_eval;
mod oauth2;
mod parser;
mod parser_py;
mod parser_ts;
mod resources;
mod schedule;
mod scripts;
Expand Down

0 comments on commit e68ea1b

Please sign in to comment.