Giter VIP home page Giter VIP logo

openapi-petstore's People

Contributors

cbornet avatar jmini avatar wing328 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

openapi-petstore's Issues

What is the license of this project?

@cbornet: I have noticed that we have no license information in this repository. Can we agree to set it to Apache 2.0?
(I can file a PR to add it, but I would like to record an agreement in this issue before)

cc: @wing328

Incorrect XML format when retrieving pet

The below XML is the response obtained when requesting a pet via its ID.

After examining it, I do not think that this is valid XML.

<Pet><id>123</id><category><id/><name/></category><name>name</name><photoUrl><photoUrl></photoUrl></photoUrl><tag><tag><id/><name/></tag></tag><status/></Pet>

500 server error when creating pet and asking for inventory

When just requesting for the inventory, the second request works perfectly fine. However, when you add a pet before, it fails with a 500 server error.

curl \
  --request POST \
  --url 'http://localhost:8080/v3/pet' \
  --header 'Content-Type: application/json' \
  --data '{"id":123,"category":{},"name":"name","photoUrls":[""],"tags":[{"id":123,"name":"tag"}],"status":{}}' \
  --location \
  --max-redirs 32
curl \
  --request GET \
  --url 'http://localhost:8080/v3/store/inventory' \
  --header 'Content-Type: application/json' \
  --header 'api_key: special-key' \
  --location \
  --max-redirs 32

Response:
{"timestamp":"2023-04-18T11:45:27.999Z","status":500,"error":"Internal Server Error","message":"No message available","path":"/v3/store/inventory"}%

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.