You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because $ref must rewrite completely current object and does not allow any siblings.
Using allOf 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:
$ speccy lint http://localhost:8080/flussonic/api/v3/schema
Specification schema is invalid.
#/components/schemas/track_info/properties/pix_fmt
expected Object {
allOf: Array [ Object { $ref: '#/components/schemas/frame_video_pix_fmt' } ],
default: 'yuv420p',
deprecated: true
} to have property type
Your environment
$ speccy --version
0.11.0
$ node --version
v14.7.0
$ uname -a
Darwin maxbook-m1.e 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 arm64
The text was updated successfully, but these errors were encountered:
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.Using
allOf
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
The text was updated successfully, but these errors were encountered: