We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$ref
1.2.25
Linux 6.13.7-2-cachyos x86_64 unknown
new Elysia() .model({ example: t.Object({ example: t.String() }) }) .get('/', () => ({ example: '' }), { query: 'example', // Duplicate ❌ params: 'example', // Duplicate ❌ headers: 'example', // Duplicate ❌ cookie: 'example', // Duplicate ❌ body: 'example', // $ref ✅ response: 'example' // $ref ✅ });
new Elysia() .model({ example: t.Object({ example: t.String() }) }) .get('/', () => ({ example: '' }), { query: 'example', // $ref ✅ params: 'example', // $ref ✅ headers: 'example', // $ref ✅ cookie: 'example', // $ref ✅ body: 'example', // $ref ✅ response: 'example' // $ref ✅ });
When using models in query, params, cookie, and headers via .model, they are redefined directly instead of being referenced with $ref.
query
params
cookie
headers
.model
No response
node_modules
bun.lockb
yes
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Elysia is running?
1.2.25
What platform is your computer?
Linux 6.13.7-2-cachyos x86_64 unknown
What steps can reproduce the bug?
What is the expected behavior?
What do you see instead?
When using models in
query
,params
,cookie
, andheaders
via.model
, they are redefined directly instead of being referenced with$ref
.Additional information
No response
Have you try removing the
node_modules
andbun.lockb
and try again yet?yes
The text was updated successfully, but these errors were encountered: