ring-swagger

ring-swagger & compojure-api
Empperi 2019-01-08T11:22:09.006900Z

Hmm. In spec-tools I'm trying to get a default value populated if that key has not been given but it doesn't seem to work. Apparently this works only if the give has been given but it has a nil value?

Empperi 2019-01-08T11:22:41.007400Z

Not a huge deal but would be more nice to define that in the spec and not do manual processing step

ikitommi 2019-01-08T12:19:48.007900Z

@niklas.collin spec-tools, does it support defaults? related: https://github.com/metosin/spec-tools/issues/51

dbernal 2019-01-08T21:00:50.009300Z

should (= (ring.swagger.json-schema/field schema.core/Num {}) (ring.swagger.json-schema/field schema.core/Num {:description "an integer"})) return true or false?

dbernal 2019-01-08T21:01:47.010300Z

I'm running into an issue when utilizing the update function with schema-tools where FieldSchema types are equivalent even though they have different meta-data