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
The answer does not contain the required photoUrls property (and some of the sdk generated with the swagger generator that check that this property is set (python) produce an error.)
Thanks
The text was updated successfully, but these errors were encountered:
In petstore api, the photoUrls property of the Pet definition is a required property.
When I tried to register a new pet using curl, if I set the photoUrls to null, the pet is registered in the store.
curl -X 'POST'
'https://petstore.swagger.io/v2/pet'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
"id": 123456789987,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": null,
"tags": [
{
"id": 0,
"name": "TheTag"
}
],
"status": "available"
}'
When I tried to look at this pet using the path /pet
curl -X 'GET'
'https://petstore.swagger.io/v2/pet/123456789987'
-H 'accept: application/json'
{"id":123456789987,"category":{"id":0,"name":"string"},"name":"doggie","tags":[{"id":0,"name":"TheTag"}],"status":"available"}
The answer does not contain the required photoUrls property (and some of the sdk generated with the swagger generator that check that this property is set (python) produce an error.)
Thanks
The text was updated successfully, but these errors were encountered: