How do I convert the Malli schema to JSON schema? I have a malli schema in edn format & it needs to be converted to JSON schema.
How do I convert the Malli schema to JSON schema? I have a malli schema in edn format & it needs to be converted to JSON schema.
"I want to do it using a mapper-key extracted from an end file. Which has different maps for different DTOs." [*edn file] In this case, you can try this.
(defn -validateYourData [payload mapper-key]
(let [
***your function here***
]
(m/validate ((keyword mapper-key) schema-file) inp-map)
)
)
And. Add this file in gen-class. Make a function call in your java class where you need to use this for validation.