-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve design system component anatomies schema
- Loading branch information
1 parent
8543707
commit 68726d5
Showing
6 changed files
with
147 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"$id": "component-anatomy.schema.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Anatomy", | ||
"description": "Anatomy of UI Component definition.", | ||
"anyOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"description": "Each named part that makes up the whole of the component.", | ||
"properties": { | ||
"name": { "type": "string" }, | ||
"optional": { "type": "boolean" }, | ||
"implicit": { "type": "boolean" }, | ||
"description": { "type": "string" } | ||
}, | ||
"additionalProperties": false, | ||
"required": ["name"] | ||
}, | ||
"uniqueItems": true | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"description": "The name of the component as defined in the design system.", | ||
"type": "string" | ||
}, | ||
"description": { "type": "string" }, | ||
"children": { | ||
"$ref": "#/$defs/children" | ||
} | ||
}, | ||
"required": ["name"] | ||
} | ||
], | ||
"$defs": { | ||
"children": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"description": "Each named part that makes up the whole of the component.", | ||
"properties": { | ||
"name": { "type": "string" }, | ||
"optional": { "type": "boolean" }, | ||
"part": { "type": "string" }, | ||
"legacyPart": { "type": "string" }, | ||
"description": { "type": "string" }, | ||
"element": { "type": "string" }, | ||
"children": { | ||
"$ref": "#/$defs/children" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": ["name"] | ||
} | ||
} | ||
}, | ||
"required": ["name"] | ||
} |
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