这是indexloc提供的服务,不要输入任何密码
Skip to content

[Feat]: Explicitly define allowed ID formats (e.g. taskId, configId, etc.) #869

@ognis1205

Description

@ognis1205

Is your feature request related to a problem? Please describe.

Inconsistencies in ID parsing and validation (e.g. taskId, configId) lead to unexpected rejections or silent failures when using characters such as - or ..

For example, task-1 fails to match \w+, but this is not documented anywhere. This causes confusion for clients or API consumers trying to follow best practices for ID naming.

https://github.com/a2aproject/a2a-python/blob/dc95e2a03fe87815702d0a134195480608346ff3/src/a2a/utils/proto_utils.py#L17

Describe the solution you'd like

I’d like to see the supported character set and format explicitly defined for identifiers like:

  • taskId
  • configId
  • artifactId

This could be expressed as a regular expression, such as:

[a-zA-Z0-9_.-]+

Describe alternatives you've considered

N/A

Additional context

N/A

Code of Conduct

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

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions