dfinity / pocketic

A canister smart contract testing solution for the Internet Computer.
Other
22 stars 1 forks source link

Responses Missing from OpenAPI Specification #15

Open q-uint opened 4 months ago

q-uint commented 4 months ago

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
      }
    }
  },
  ...
}
michael-weigelt commented 4 months ago

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

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