Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit cb8375c

Browse files
committed
Validation framework for non-terminal types.
1 parent 9b47ef0 commit cb8375c

File tree

7 files changed

+215
-259
lines changed

7 files changed

+215
-259
lines changed

dash_core_components/Graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66

7-
schema = {'id': {'type': 'string', 'required': True}, 'clickData': {'type': 'dict'}, 'hoverData': {'type': 'dict'}, 'clear_on_unhover': {'type': 'boolean'}, 'selectedData': {'type': 'dict'}, 'relayoutData': {'type': 'dict'}, 'figure': {'validator': 'plotly_figure', 'type': 'dict'}, 'style': {'type': 'dict'}, 'className': {'type': 'string'}, 'animate': {'type': 'boolean'}, 'animation_options': {'type': 'dict'}, 'config': {'type': 'dict', 'allow_unknown': False, 'nullable': False, 'schema': {'staticPlot': {'type': 'boolean'}, 'editable': {'type': 'boolean'}, 'edits': {'type': 'dict', 'allow_unknown': False, 'nullable': False, 'schema': {'annotationPosition': {'type': 'boolean'}, 'annotationTail': {'type': 'boolean'}, 'annotationText': {'type': 'boolean'}, 'axisTitleText': {'type': 'boolean'}, 'colorbarPosition': {'type': 'boolean'}, 'colorbarTitleText': {'type': 'boolean'}, 'legendPosition': {'type': 'boolean'}, 'legendText': {'type': 'boolean'}, 'shapePosition': {'type': 'boolean'}, 'titleText': {'type': 'boolean'}}}, 'autosizable': {'type': 'boolean'}, 'queueLength': {'type': 'number'}, 'fillFrame': {'type': 'boolean'}, 'frameMargins': {'type': 'number'}, 'scrollZoom': {'type': 'boolean'}, 'doubleClick': {'allowed': ['false', 'reset', 'autosize', 'reset+autosize'], 'type': ('string', 'number')}, 'showTips': {'type': 'boolean'}, 'showAxisDragHandles': {'type': 'boolean'}, 'showAxisRangeEntryBoxes': {'type': 'boolean'}, 'showLink': {'type': 'boolean'}, 'sendData': {'type': 'boolean'}, 'linkText': {'type': 'string'}, 'displayModeBar': {'allowed': ['true', 'false', 'hover'], 'type': ('string', 'number')}, 'modeBarButtonsToRemove': {'type': 'list'}, 'modeBarButtonsToAdd': {'type': 'list'}, 'modeBarButtons': {'type': ('boolean', 'number', 'string', 'dict', 'list')}, 'displaylogo': {'type': 'boolean'}, 'plotGlPixelRatio': {'type': 'number'}, 'topojsonURL': {'type': 'string'}, 'mapboxAccessToken': {'type': ('boolean', 'number', 'string', 'dict', 'list')}}}, 'dashEvents': {'allowed': ['click', 'hover', 'selected', 'relayout', 'unhover'], 'type': ('string', 'number')}, 'setProps': {}, 'fireEvent': {}}
7+
schema = {'id': {'type': 'string', 'required': True}, 'clickData': {'type': 'dict'}, 'hoverData': {'type': 'dict'}, 'clear_on_unhover': {'type': 'boolean'}, 'selectedData': {'type': 'dict'}, 'relayoutData': {'type': 'dict'}, 'figure': {'validator': 'plotly_figure'}, 'style': {'type': 'dict'}, 'className': {'type': 'string'}, 'animate': {'type': 'boolean'}, 'animation_options': {'type': 'dict'}, 'config': {'type': 'dict', 'allow_unknown': False, 'nullable': False, 'schema': {'staticPlot': {'type': 'boolean'}, 'editable': {'type': 'boolean'}, 'edits': {'type': 'dict', 'allow_unknown': False, 'nullable': False, 'schema': {'annotationPosition': {'type': 'boolean'}, 'annotationTail': {'type': 'boolean'}, 'annotationText': {'type': 'boolean'}, 'axisTitleText': {'type': 'boolean'}, 'colorbarPosition': {'type': 'boolean'}, 'colorbarTitleText': {'type': 'boolean'}, 'legendPosition': {'type': 'boolean'}, 'legendText': {'type': 'boolean'}, 'shapePosition': {'type': 'boolean'}, 'titleText': {'type': 'boolean'}}}, 'autosizable': {'type': 'boolean'}, 'queueLength': {'type': 'number'}, 'fillFrame': {'type': 'boolean'}, 'frameMargins': {'type': 'number'}, 'scrollZoom': {'type': 'boolean'}, 'doubleClick': {'allowed': ['false', 'reset', 'autosize', 'reset+autosize'], 'type': ('string', 'number')}, 'showTips': {'type': 'boolean'}, 'showAxisDragHandles': {'type': 'boolean'}, 'showAxisRangeEntryBoxes': {'type': 'boolean'}, 'showLink': {'type': 'boolean'}, 'sendData': {'type': 'boolean'}, 'linkText': {'type': 'string'}, 'displayModeBar': {'allowed': ['true', 'false', 'hover'], 'type': ('string', 'number')}, 'modeBarButtonsToRemove': {'type': 'list'}, 'modeBarButtonsToAdd': {'type': 'list'}, 'modeBarButtons': {'type': ('boolean', 'number', 'string', 'dict', 'list')}, 'displaylogo': {'type': 'boolean'}, 'plotGlPixelRatio': {'type': 'number'}, 'topojsonURL': {'type': 'string'}, 'mapboxAccessToken': {'type': ('boolean', 'number', 'string', 'dict', 'list')}}}, 'dashEvents': {'allowed': ['click', 'hover', 'selected', 'relayout', 'unhover'], 'type': ('string', 'number')}, 'setProps': {}, 'fireEvent': {}}
88

99
class Graph(Component):
1010
"""A Graph component.

dash_core_components/bundle.js

Lines changed: 33 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_core_components/metadata.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,9 +1339,6 @@
13391339
}
13401340
},
13411341
"figure": {
1342-
"type": {
1343-
"name": "object"
1344-
},
13451342
"required": false,
13461343
"description": "Plotly `figure` object. See schema:\nhttps://plot.ly/javascript/reference",
13471344
"defaultValue": {

dash_core_components/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.29.0-rc3'
1+
__version__ = '0.29.0-rc6'

0 commit comments

Comments
 (0)