Fork me on GitHub
#ring-swagger
<
2016-08-23
>
shem10:08:51

it seems that if i have a s/either in a schema describing the input of a route in c-api, swagger-ui shows only one of the branches. validation works for both alternatives. am i doing something wrong or is it the way it works?

shem10:08:45

also, schemas that have non-kw keys don't show up in swagger-ui

ikitommi10:08:44

@shem: swagger spec doesn't support either. See my 2y old issue on it: https://github.com/OAI/OpenAPI-Specification/issues/57. README of ring-swagger lists how the schemas are mapped json schema. So, you are doing it right.

ikitommi10:08:27

non-kw keys, could you paste an example?

shem10:08:15

{s/Int {:name s/Str :type s/Str}

ikitommi11:08:37

ah, that could be represented with Swagger. Open and issue to ring-swagger?

ikitommi11:08:17

patterned propertied in JSON Schema I think.

shem11:08:20

ok, will do. thanks for clarification!