Skip to content

Commit

Permalink
feat: add widget schema (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nesqwik authored Feb 21, 2022
1 parent 4ee15de commit bfe8e54
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions api/components/widget.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://raw.githubusercontent.com/lenra-io/ex_component_schema/beta/priv/static/draft-lenra.json",
"$id": "widget.schema.json",
"title": "widget",
"description": "Element of type widget",
"type": "component",
"properties": {
"type": {
"description": "The identifier of the component",
"enum": [
"widget"
]
},
"name": {
"description": "The name of the widget",
"type": "string"
},
"props": {
"$ref": "defs/props.schema.json"
}
},
"required": [
"type",
"name"
],
"additionalProperties": false
}

0 comments on commit bfe8e54

Please sign in to comment.