You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
Add a ConstraintField component. Each instance of EditorField my optionally have a ConstraintField.
One level down we would then need corresponding UPDATE_CONSTRAINT and REMOVE_CONSTRAINT reducers.
AFAICT as long as we build up the schema correctly on input datapackage-js should handle the additional validation for us.
The bigger challenge is probably how to present it visually. EditorField is already a bit squished with 4 UI elements and supporting constraint fully requires an additional 8 interface elements
(Feature request arising from the eLife Innovation Sprint 2020)
Please preserve this line to notify @roll (lead of this repository)
Overview
It would be useful if datapackage-ui exposed the constraints concept from the tableschema spec
https://specs.frictionlessdata.io/table-schema/#constraints
At a code level, this would require us to
ConstraintFieldcomponent. Each instance ofEditorFieldmy optionally have aConstraintField.UPDATE_CONSTRAINTandREMOVE_CONSTRAINTreducers.AFAICT as long as we build up the schema correctly on input datapackage-js should handle the additional validation for us.
The bigger challenge is probably how to present it visually.
EditorFieldis already a bit squished with 4 UI elements and supporting constraint fully requires an additional 8 interface elements(Feature request arising from the eLife Innovation Sprint 2020)
Please preserve this line to notify @roll (lead of this repository)