-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Node): Expand the
Node
union type to include all entity types
- Loading branch information
Showing
8 changed files
with
126 additions
and
23 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
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
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
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
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
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
title: Node | ||
category: other | ||
status: unstable | ||
description: Union type for all valid nodes. | ||
description: Union type for all schema nodes, including primitives and entities | ||
$comment: | | ||
The entity types in this union are automatically inserted during the build. | ||
The order of these types is important because it determines the | ||
order of attempted coercion (ie. parsing and reshaping to arrays) | ||
order of attempted coercion (ie. parsing and reshaping to arrays). | ||
Array should come last to avoid single items (e.g. a single string) | ||
being coerced into an array. | ||
anyOf: | ||
- $ref: Entity | ||
- type: 'null' | ||
- type: boolean | ||
- type: integer | ||
- type: number | ||
- type: string | ||
- type: object | ||
# Array should come last to avoid single items (e.g. a single string) | ||
# being coerced into an array. | ||
- type: array |
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
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