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
I want to define DSL which contains entity definition (zen/schema) and custom metadata. And it would be nice to have some feature - that helps avoid redundancy
Example:
MyDoc
{:zen/tags #{zen/schema zen/tag}
:type zen/map
:keys {:a {:control input/text
:text "My new input"
:type zen/string}}}
Here I define entity and form which gather that entity, but I need to specify both :control 'input/text' and :type 'zen/string'. I want to find a way to make that input/text define type of value - zen/string - and don't need to repeat it several times.
As I know it's possible by creating new :type - but this option requires to create validation functions in clojure. and also implement every constraint for the type - which can be error prone.
It's would be very usefull to have some zen constructions to combine such aspects of data.
urgency: high
The text was updated successfully, but these errors were encountered:
I want to define DSL which contains entity definition (zen/schema) and custom metadata. And it would be nice to have some feature - that helps avoid redundancy
Example:
Here I define entity and form which gather that entity, but I need to specify both :control 'input/text' and :type 'zen/string'. I want to find a way to make that
input/text
define type of value - zen/string - and don't need to repeat it several times.As I know it's possible by creating new
:type
- but this option requires to create validation functions in clojure. and also implement every constraint for the type - which can be error prone.It's would be very usefull to have some zen constructions to combine such aspects of data.
urgency: high
The text was updated successfully, but these errors were encountered: