Tommi Reiman

Results 449 comments of Tommi Reiman

Reitit 0.1.0 has shipped, with support for schema & spec coercion for Clojure/Script. 0.1.1-SNAPSHOT has now swagger-support ported also for Clojure/Script! reitit-examples are for Clojure now, would be good to...

Awesome! Just asked about the record walking cljs issue on CLJS Jira, would like to get your spec-tools pr merged.

Thanks for the report! Also, sequential schemas could have lower bound, e.g. `[(s/one s/Str "s") s/Str]` => `1..*`

also, coercion needs this too. ```clj (defn ->DateTime [date] (if (instance? Date date) (tc/from-date date) date)) (defn parse-date-time ^DateTime [date] (tf/parse (tf/formatters :date-time-parser) (->DateTime date))) (defn parse-date ^DateTime [date] (tf/parse-local-date...

PR most welcome.

Could there be a separately special `get-in-value`, which would walk over schema Records?

There is already `get-schema-value` which walks over one level and is documented `"Returns the sub-schema or sub-schemas of given schema."`. So, `get-in-schema-value` could be coherent name...

Per now, ring-swagger directly generates Swagger2, not JSON Schema. So, a new feature actually. Paving the road for OpenAPI3 support

Implemented for the spec already: https://github.com/metosin/spec-tools/blob/master/src/spec_tools/json_schema.cljc

A good question. It would be good to have a One Right Opinion on how the errors should be accumulated, but not sure what that would be. I don't think...