Skip to content

[Bug]: Agent Card JSON representation returns "null" for undefined fields #591

Closed

Description

@jmesnil

What happened?

The JSON representation of the Agent Card returns null for undefined fields.
I'm not sure if that's correct or if the fields should not be present instead.

Relevant log output

{
  "name": "Hello World Agent",
  "description": "Just a hello world agent",
  "provider": null,
  "version": "1.0.0",
  "documentationUrl": "http://example.com/docs",
  "capabilities": {
    "streaming": true,
    "pushNotifications": true,
    "stateTransitionHistory": true,
    "extensions": null
  },
  "defaultInputModes": [
    "text"
  ],
  "defaultOutputModes": [
    "text"
  ],
  "skills": [
    {
      "id": "hello_world",
      "name": "Returns hello world",
      "description": "just returns hello world",
      "tags": [
        "hello world"
      ],
      "examples": [
        "hi",
        "hello world"
      ],
      "inputModes": null,
      "outputModes": null,
      "security": null
    }
  ],
  "supportsExtendedAgentCard": true,
  "securitySchemes": {
    "google": {
      "openIdConnectUrl": "https://accounts.google.com/.well-known/openid-configuration",
      "description": null
    }
  },
  "security": [
    {
      "google": [
        "openid",
        "profile",
        "email"
      ]
    }
  ],
  "iconUrl": null,
  "supportedInterfaces": [
    {
      "protocolBinding": "JSONRPC",
      "url": "http://localhost:9999",
      "tenant": ""
    },
    {
      "protocolBinding": "GRPC",
      "url": "http://localhost:9999",
      "tenant": ""
    },
    {
      "protocolBinding": "HTTP+JSON",
      "url": "http://localhost:9999",
      "tenant": ""
    }
  ],
  "protocolVersion": "1.0",
  "signatures": null
}


I was expecting something without null fields like:


{
  "name": "Hello World Agent",
  "description": "Just a hello world agent",
  "version": "1.0.0",
  "documentationUrl": "http://example.com/docs",
  "capabilities": {
    "streaming": true,
    "pushNotifications": true,
    "stateTransitionHistory": true,
  },
  "defaultInputModes": [
    "text"
  ],
  "defaultOutputModes": [
    "text"
  ],
  "skills": [
    {
      "id": "hello_world",
      "name": "Returns hello world",
      "description": "just returns hello world",
      "tags": [
        "hello world"
      ],
      "examples": [
        "hi",
        "hello world"
      ],
    }
  ],
  "supportsExtendedAgentCard": true,
  "securitySchemes": {
    "google": {
      "openIdConnectUrl": "https://accounts.google.com/.well-known/openid-configuration",
    }
  },
  "security": [
    {
      "google": [
        "openid",
        "profile",
        "email"
      ]
    }
  ],
  "supportedInterfaces": [
    {
      "protocolBinding": "JSONRPC",
      "url": "http://localhost:9999",
    },
    {
      "protocolBinding": "GRPC",
      "url": "http://localhost:9999",
    },
    {
      "protocolBinding": "HTTP+JSON",
      "url": "http://localhost:9999",
    }
  ],
  "protocolVersion": "1.0"
}

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Jan 15, 2026
  2. added this to the 1.0.0 milestone on Jan 15, 2026
  3. added 4 commits that reference this issue on Jan 15, 2026
    3346eff
    4b16f08
    d0bf9c0
    7f5c6c8
  4. linked a pull request that will close this issuefix: Fix Security JSON serialization #592on Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions