Fork me on GitHub
#ring-swagger
<
2019-01-08
>
Empperi11:01:09

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?

Empperi11:01:41

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

dbernal21:01:50

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

dbernal21:01:47

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