$refs inside additionalProperties
are not converted from definitions
to components/schema
#821
Closed
2 tasks done
Prerequisites
Fastify version
5.0.0
Plugin version
9.0.0
Node.js version
20.17.0
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
22H2
Description
When using $ref inside
patternProperties
the relative path is not adjusted to referencecomponents/schema
instead ofdefinitions
, thus resulting in a broken reference.So this basic example:
results in this broken spec:
instead of the correct:
Link to code that reproduces the bug
No response
Expected Behavior
The expected behavior would be to correctly reference other schemas trough
$ref
inside thepatterProperties
as described in the upper example.The text was updated successfully, but these errors were encountered: