-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: oneOf/anyOf as a dropdown, attempt no 2 (#110)
* feat: add oneOf story * feat: show oneOf & anyOf as a dropdown * fix: build error * feat: use mosaic Select * docs: add another story * feat: implement choice selector * feat: rework SchemaRow header * fix: alignment issues * feat: handle array of anyOfs * feat: change array name formatting * feat: nice plural names ;) * feat: update format styling * chore: apply PR feedback * chore: address PR feedback Co-authored-by: Jakub Rożek <[email protected]> * test: update * test: update Co-authored-by: Jakub Rożek <[email protected]>
- Loading branch information
Showing
15 changed files
with
2,340 additions
and
2,593 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"title": "A", | ||
"properties": { | ||
"foo": { | ||
"type": "string", | ||
"enum": [ | ||
"test" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "object", | ||
"title": "B", | ||
"properties": { | ||
"foo": { | ||
"type": "number" | ||
}, | ||
"bar": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.