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
Note that the $ref are evaluated at runtime, and to provide such a feature the IDE should:
inspect all your schemas in the source code
choose the right one (what if multiple schemas have the same id?)
provide the autocompletion
From the source code point of view, the plain {$ref: 'something'} does not provide any value to the reusability over the fastify.getSchema('something')
Activity
Eomm commentedon Mar 15, 2025
No, TypeBoxTypeProvider does not support it. I think it is related to this issue: fastify/fastify-type-provider-typebox#86
Note that the
$refare evaluated at runtime, and to provide such a feature the IDE should:From the source code point of view, the plain
{$ref: 'something'}does not provide any value to the reusability over thefastify.getSchema('something')