metosin / malli

High-performance data-driven data specification library for Clojure/Script.
Eclipse Public License 2.0
1.47k stars 209 forks source link

Fix enum ast losing properties and options #790

Closed rralston-sfin closed 1 year ago

rralston-sfin commented 1 year ago

With the following enum schema

(def enum-example
    [:enum {:encode/json name :decode/json keyword} :e-1 :e-2])

(properties (from-ast (ast enum-example))) returns nil rather than {:encode/json name :decode/json keyword}.

The fix persists the properties and options from the schema into the ast.

ikitommi commented 1 year ago

thanks!