Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

petstore.swagger.io/v2 returns pets missing the required 'photoUrls' key. #98

Closed
jonschoning opened this issue Aug 29, 2017 · 0 comments

Comments

@jonschoning
Copy link

jonschoning commented Aug 29, 2017

http://petstore.swagger.io/#/pet/getPetById and http://petstore.swagger.io/#/pet/findPetsByStatus documents the 200 response returning a Pet in which 'photoUrls' is a required field, but it returns Pets missing the required 'photoUrls' key.

$ curl -iX GET "http://petstore.swagger.io/v2/pet/8340" -H "accept: application/json"
HTTP/1.1 200 OK
Date: Tue, 29 Aug 2017 21:46:48 GMT
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, DELETE, PUT
Access-Control-Allow-Headers: Content-Type, api_key, Authorization
Content-Type: application/json
Connection: close
Server: Jetty(9.2.9.v20150224)

{"id":8340,"category":{"id":232,"name":"name_39320234"},"name":"name_054905","tags":[{"id":1506,"name":"name_455556"},{"id":2420,"name":"name_61327132"}],"status":"pending"}% 
@jonschoning jonschoning changed the title petstore.swagger.io/v2 returns pets missing the 'photoUrls' key. petstore.swagger.io/v2 returns pets missing the required 'photoUrls' key. Aug 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant