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
2.1.0
When I try to validate a payload that have dot on the object key, the vine compiler reports an issue. Like this :
{ 'hub.mode': "string", 'hub.challenge': "string", 'hub.verify_token': "string", }
First I tried :
const verificationRequestSchema = vine.object({ 'hub.mode': vine.literal('subscribe'), 'hub.challenge': vine.number(), 'hub.verify_token': vine.literal('env'), })
It gave me a compiler error.
As a workaround, I tried to do this :
const verificationRequestSchema = vine.object({ hub: vine.object({ mode: vine.literal('subscribe'), challenge: vine.number(), verify_token: vine.literal("value"), }) })
But it didn't work, it redirects me to base path instead and no error.
To reproduce the bug, you have to visit after starting the project : bug reproduction
You can find a link to the issue on the Discord here : Discord discussion
https://github.com/kaldray/vine-dot-values
The text was updated successfully, but these errors were encountered:
How does the data object look at your end that you expect to pass the validation?
Sorry, something went wrong.
If I follow the parameters passed on the reproduction link, it should be like :
{ "hub.mode":"subscribe", "hub.challenge":1158201444, "hub.verify_token":"meatyhamhock" }
fix: add tests to ensure field names with special chars are allowed
67f6c52
Also check for the original fix vinejs/compiler@4965ded Closes: #50, #63, #82
No branches or pull requests
Package version
2.1.0
Describe the bug
When I try to validate a payload that have dot on the object key, the vine compiler reports an issue. Like this :
First I tried :
It gave me a compiler error.
As a workaround, I tried to do this :
But it didn't work, it redirects me to base path instead and no error.
To reproduce the bug, you have to visit after starting the project : bug reproduction
You can find a link to the issue on the Discord here : Discord discussion
Reproduction repo
https://github.com/kaldray/vine-dot-values
The text was updated successfully, but these errors were encountered: