Open maxlapshin opened 3 years ago
Please, consider updating dependency from oas-kit:
https://github.com/Mermade/oas-kit/blob/main/packages/oas-validator/index.js#L220
It has laxDefault option now that allows to pass mismatch between default
and type
options
Field in API can refer to some component and have default value. Speccy doesn't allow combining
allOf $ref
anddefault
Detailed description
For example:
It is illegal to specify
because
$ref
must rewrite completely current object and does not allow any siblings. UsingallOf
is a working hack to allow having siblings for$ref
, but speccy doesn't allow default with$ref
I suppose that speccy should either validate default against referenced component, either do not complain about having default without type:
Your environment