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
When using this configuration: validation: { headers: { 'x-app-key': { isRequired: true } } }
validation: { headers: { 'x-app-key': { isRequired: true } } }
A request using the required field works fine: curl -X POST -H "Content-Type: application/json" -H "x-app-key: 123123"
curl -X POST -H "Content-Type: application/json" -H "x-app-key: 123123"
However, when trying to use uppercase letters in the header name: validation: { headers: { 'X-app-key': { isRequired: true } } }
validation: { headers: { 'X-app-key': { isRequired: true } } }
A similar request: curl -X POST -H "Content-Type: application/json" -H "X-app-key: 123123"
curl -X POST -H "Content-Type: application/json" -H "X-app-key: 123123"
Throws: {"code":"InvalidArgument","message":"X-app-key (MISSING): Field is required"}
{"code":"InvalidArgument","message":"X-app-key (MISSING): Field is required"}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using this configuration:
validation: { headers: { 'x-app-key': { isRequired: true } } }
A request using the required field works fine:
curl -X POST -H "Content-Type: application/json" -H "x-app-key: 123123"
However, when trying to use uppercase letters in the header name:
validation: { headers: { 'X-app-key': { isRequired: true } } }
A similar request:
curl -X POST -H "Content-Type: application/json" -H "X-app-key: 123123"
Throws:
{"code":"InvalidArgument","message":"X-app-key (MISSING): Field is required"}
The text was updated successfully, but these errors were encountered: