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
TypeError
"nullable": false
Given a schema:
openapi: 3.0.0 info: title: test version: test description: test termsOfService: test paths: /api/data: post: requestBody: required: true content: application/json: schema: type: object required: - value properties: value: nullable: false oneOf: - type: string - type: boolean responses: '200': description: A response content: application/json: schema: type: string
Validating a POST /api/data request with a payload like this:
POST /api/data
{ "value": null }
Give a TypeError error with the message in_array(): Argument #2 ($haystack) must be of type array, null given message from
in_array(): Argument #2 ($haystack) must be of type array, null given
openapi-psr7-validator/src/Schema/Keywords/Nullable.php
Line 30 in 6772c57
InvalidBody
The text was updated successfully, but these errors were encountered:
nullable
false
No branches or pull requests
Given a schema:
Validating a
POST /api/data
request with a payload like this:Give a
TypeError
error with the messagein_array(): Argument #2 ($haystack) must be of type array, null given
message fromopenapi-psr7-validator/src/Schema/Keywords/Nullable.php
Line 30 in 6772c57
Instead of a
InvalidBody
exception.The text was updated successfully, but these errors were encountered: