Fiber v0.14.6
Patch Changes
-
#81
a7def54Thanks @MathiasWP! - Readconstwhen building a body from a schema.OpenAPI 3.1 uses JSON Schema 2020-12, where a literal is written as
constand a literal union asanyOf: [{const: "once"}, {const: "always"}]. That is what 3.1 generators emit where 3.0 would have written anenum. Fiber readexample,defaultandenum, but notconst— so it walked into the first branch, found nothing to go on, and printed thestringplaceholder for a field whose only legal values were named right there. Sending that body back got it rejected by the very document it came from.One real spec this was found against writes 543
consts and not a singleenum, so the existingenumhandling never fired once across 658 paths. Aconstis now taken as the value it names, in request skeletons and in form fields alike.