Stoobly / stoobly-agent

Record, mock, and test HTTP/HTTPS requests. CLI agent for Stoobly.
Other
6 stars 0 forks source link

Endpoint import not marking params as required #215

Closed Jvlythical closed 2 months ago

Jvlythical commented 2 months ago

Given:

{
  "openapi": "3.0.1",
  "info": {
    "version": "v1"
  },
  "paths": {
    "/v1/transactions": {
      "get": {
        "parameters": [
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "locationId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
}

Expect: userId and locationId to be required

Received: image