Skip to content

[Server]: Fields in JSON are capitalized in response, but lowercased in OpenAPI schema #496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alex-mcgovern opened this issue May 28, 2025 · 0 comments

Comments

@alex-mcgovern
Copy link

This has already been discussed, but I'm recording it here for posterity.

In the OpenAPI schema, properties in JSON responses are not capitalized, e.g. #/components/schemas/runtime.ContainerInfo:

{
  "properties": {
    "created": {
      "description": "Created is the container creation timestamp",
      "type": "string"
    },
    "id": {
      "description": "ID is the container ID",
      "type": "string"
    },
    // ...
    "status": {
      "description": "Status is the container status",
      "type": "string"
    }
  },
  "type": "object"
}

However, in the actual response from the API, they are. e.g.

{
  "ID": "b6fb47b09e3604e47e2b9241068762733466580a66610d2d8ac37aeeeefdb64d",
  "Name": "fetch",
  "Image": "mcp/fetch:latest",
  "Status": "Up 5 minutes",
  "State": "running",
  "Created": "2025-05-28T16:16:50+01:00",
  "Labels": {
    "org.opencontainers.image.revision": "b4ee623039a6c60053ce67269701ad9e95073306",
    "toolhive": "true",
    "toolhive-basename": "fetch",
    "toolhive-name": "fetch",
    "toolhive-port": "22966",
    "toolhive-tool-type": "mcp",
    "toolhive-transport": "stdio"
  },
  "Ports": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant