You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to get a property when validating a path or header (GET method - REST API). My application was written in laravel 6 version.
My part json-schematic about parameters
"Parameters": [
{
"In": "header",
"Name": "customer ID",
"Required": true,
"Type": "string"
},
{
"In": "path",
"Name": "product_id",
"Required": true,
"Type": "string",
"MaxLength": 24
}
]
When I send GET, where product_identifier has 25 words, I get errors, but without properties
0 => array: 6 [
"Property" => ""
"Pointer" => ""
"Message" => "Must be up to 24 characters"
"Constraint" => "maxLength"
"Context" => 1
"MaxLength" => 24
]
How can I get property?
The text was updated successfully, but these errors were encountered:
Can you please provide an example JSON schema and document to reproduce using this library only. I'd like to see what the library is being expected to take as input.
@tomzdon it seems like you mixed (parts of) OpenApiSpec/Swagger with json-schema. This library is used for validating a JSON document it doesnt help out with request parameters such as path or headers.
In an attempt to cleanup this repo we are trying to filter the issues and see which ones might be closed. Is it safe to assume this is a rather old issue, which sadly was left unanswered, and can be closed? Feel free to close it yourself with some comments if helpful.
I would like to get a property when validating a path or header (GET method - REST API). My application was written in laravel 6 version.
My part json-schematic about parameters
"Parameters": [
{
"In": "header",
"Name": "customer ID",
"Required": true,
"Type": "string"
},
{
"In": "path",
"Name": "product_id",
"Required": true,
"Type": "string",
"MaxLength": 24
}
]
When I send GET, where product_identifier has 25 words, I get errors, but without properties
0 => array: 6 [
"Property" => ""
"Pointer" => ""
"Message" => "Must be up to 24 characters"
"Constraint" => "maxLength"
"Context" => 1
"MaxLength" => 24
]
How can I get property?
The text was updated successfully, but these errors were encountered: