preaction / Yancy

The Best Web Framework Deserves the Best Content Management System
http://preaction.me/yancy/
Other
54 stars 21 forks source link

Openapi endpoints #77

Closed wbazant closed 4 years ago

wbazant commented 4 years ago

Improve the descriptions' correctness: the behaviour about "*" is only for strings, but numbers and integers do an equal match and booleans do true/false.

Also recognize the string "false" in query so that you can do value=false.

Implements queries in OpenAPI endpoints for array parameters, based on array membership.

TODO https://github.com/preaction/Yancy/issues/74 about switching to OpenAPI v3 and adding a {type: 'object'} test to t/plugin/editor.t which currently gets rejected by JSON::Validator.

preaction commented 4 years ago

Excellent, thanks! Looks like the test failures are due to JSON::Validator 3.15 improving their error messages, so that'll have to be fixed before this can be released.