Coder Social home page Coder Social logo

Comments (1)

anttiviljami avatar anttiviljami commented on June 17, 2024

Hi @dacoffey! Thanks for reporting this. The issue is fixed in [email protected]:

$ npx -y openapicmd call https://petstore3.swagger.io/api/v3/openapi.json -o findPetsByStatus -p status=sold -vi

REQUEST META:
{
  "operationId": "findPetsByStatus",
  "method": "get",
  "url": "https://petstore3.swagger.io/api/v3/pet/findByStatus?status=sold",
  "path": "/pet/findByStatus",
  "pathParams": {},
  "query": {
    "status": "sold"
  },
  "queryString": "status=sold",
  "headers": {
    "Accept": "application/json, text/plain, */*"
  },
  "cookies": {}
}
RESPONSE META:
{
  "code": 200,
  "status": "OK",
  "headers": {
    "date": "Sat, 27 Jan 2024 10:31:23 GMT",
    "content-type": "application/json",
    "content-length": "1148",
    "connection": "keep-alive",
    "access-control-allow-origin": "*",
    "access-control-allow-methods": "GET, POST, DELETE, PUT",
    "access-control-allow-headers": "Content-Type, api_key, Authorization",
    "access-control-expose-headers": "Content-Disposition",
    "server": "Jetty(9.4.9.v20180320)"
  }
}
RESPONSE BODY:
[
  {
    "id": 5,
    "category": {
      "id": 1,
      "name": "Dogs"
    },
    "name": "Dog 2",
    "photoUrls": [
      "url1",
      "url2"
    ],
    "tags": [
      {
        "id": 1,
        "name": "tag2"
      },
      {
        "id": 2,
        "name": "tag3"
      }
    ],
    "status": "sold"
  },
  {
    "id": 86,
    "name": "Special_char_owner_!@#$^&()`.testing",
    "photoUrls": [
      "https://petstore3.swagger.io/resources/photos/623389095.jpg"
    ],
    "tags": [],
    "status": "sold"
  },
  {
    "id": 867,
    "name": "見響见响仮仏!$%&()*+,-ƄƅƆḞḟṀʶʷʸ㥹",
    "photoUrls": [
      "https://petstore3.swagger.io/resources/photos/623389095.jpg"
    ],
    "tags": [],
    "status": "sold"
  },
  {
    "id": 6,
    "name": "Special_char_owner_!@#$^&()`.testing",
    "photoUrls": [
      "https://petstore3.swagger.io/resources/photos/623389095.jpg"
    ],
    "tags": [],
    "status": "sold"
  },
  {
    "id": 134674,
    "name": "見響见响仮仏!$%&()*+,-ƄƅƆḞḟṀʶʷʸ㥹",
    "photoUrls": [
      "https://petstore3.swagger.io/resources/photos/623389095.jpg"
    ],
    "tags": [],
    "status": "sold"
  },
  {
    "id": 13467,
    "name": "見響见响仮仏!$%&()*+,-ƄƅƆḞḟṀʶʷʸ㥹",
    "photoUrls": [
      "https://petstore3.swagger.io/resources/photos/623389095.jpg"
    ],
    "tags": [],
    "status": "sold"
  },
  {
    "id": 2,
    "category": {
      "id": 2,
      "name": "Chaucito"
    },
    "name": "Gatitotototo",
    "photoUrls": [],
    "tags": [
      {
        "id": 1,
        "name": "Bizcocho"
      }
    ],
    "status": "sold"
  }
]

from openapicmd.

Related Issues (10)

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.