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
Validation models defined using the model method are not resolved in registerSchemaPath
model
registerSchemaPath
Using the .model chain method
.model
app .model({ signIn: t.Object({ username: t.String(), password: t.String(), }), }) .post("/signin", () => "hello", {body: "signIn"})
results in the spec request body being empty. Using the schema directly:
app.post("/signin", () => "hello", { body: t.Object({ username: t.String(), password: t.String(), }) })
makes the spec contain the specified fields.
The generated spec should be the same regardless of the schema definition method.
├── @elysiajs/[email protected] ├── @elysiajs/[email protected] ├── [email protected] ├── [email protected]
The text was updated successfully, but these errors were encountered:
A duplicate of #155 (comment)
Sorry, something went wrong.
No branches or pull requests
Validation models defined using the
model
method are not resolved inregisterSchemaPath
Issue
Using the
.model
chain methodresults in the spec request body being empty.
Using the schema directly:
makes the spec contain the specified fields.
.model
Expected
The generated spec should be the same regardless of the schema definition method.
Dependencies
The text was updated successfully, but these errors were encountered: