pocketic icon indicating copy to clipboard operation
pocketic copied to clipboard

Responses Missing from OpenAPI Specification

Open q-uint opened this issue 1 year ago • 2 comments

The POST response bodies are not included in the OAS exposed by PocketIC's /api.json endpoint.

Example:

{
  ...
  "/instances/": {
    "get": {
      "responses": {
        "200": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "post": {
      "requestBody": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ExtendedSubnetConfigSet"
            }
          }
        },
        "required": true
      }
    }
  },
  ...
}

q-uint avatar Apr 28 '24 16:04 q-uint

Hi Quint, thanks for the heads-up, I added a(n internal) ticket.

Team: https://dfinity.atlassian.net/browse/VER-2759

michael-weigelt avatar Apr 29 '24 12:04 michael-weigelt