Skip to content

updateMock tool is missing a mandatory collection parameter in the input schema #60

@nashjain

Description

@nashjain

The input schema of updateMock tool was missing the required collection parameter. This update brings the schema in line with the implementation to avoid an API drift.

If you send the following request as per the input schema of updateMock:

{
  "mockId": "specmatic-mock-id",
  "mock": {
    "name": "Specmatic Mock",
    "environment": "SIT",
    "description": "Specmatic generated mock server for SIT environment",
    "private": true,
    "versionTag": "v1.0.0",
    "config": {
      "serverResponseId": "AMVAPKDSDG"
    }
  }
}

we get the following error:

MCP error -32602: API request failed: 400

{
  "error": {
    "details": {
      "param": "collection"
    },
    "name": "paramMissingError",
    "message": "Parameter is missing in the request."
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions