Skip to content

Add ability to create zen types with zen #46

@qdzo

Description

@qdzo

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions