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
Describe the bug
I am seeing String methods are mixed in with the object properties.
To Reproduce
import { createSchema, TsjsonParser } from "ts-json-validator" const username = createSchema({ type: "string", minLength: 2 }) const password = createSchema({ type: "string" }) export const register = createSchema({ type: "object", properties: { username, password, }, required: ["username", "password"] }) const registerParser = new TsjsonParser(register) const body = registerParser.parse('{}')
Expected behavior
To have only username and password props.
username
password
Actual behavior
Lots of unrelated props, from the String object.
Screenshots
Additional context
"typescript": "4.4.3" "ts-json-validator": "0.7.1", "tsconfigs": "5.0.0"
tsconfig.json
{ "extends": "tsconfigs/agnostic-module", "compilerOptions": { "jsx": "react" }, "include": [ "src/**/*", "lambda/**/*" ] }
The text was updated successfully, but these errors were encountered:
ostrowr
No branches or pull requests
Describe the bug
I am seeing String methods are mixed in with the object properties.
To Reproduce
Expected behavior
To have only
username
andpassword
props.Actual behavior
Lots of unrelated props, from the String object.
Screenshots
Additional context
packages:
tsconfig.json
The text was updated successfully, but these errors were encountered: