Skip to content

fix: allow omitted task push config id - #1092

Open
hutiefang76 wants to merge 1 commit into
a2aproject:mainfrom
hutiefang76:codex/a2a-java-1081-optional-push-config-id
Open

fix: allow omitted task push config id#1092
hutiefang76 wants to merge 1 commit into
a2aproject:mainfrom
hutiefang76:codex/a2a-java-1081-optional-push-config-id

Conversation

@hutiefang76

Copy link
Copy Markdown

Description

Allow TaskPushNotificationConfig to omit its id when a client creates a push notification configuration, matching the A2A specification. The in-memory store now assigns the task ID when the supplied ID is null or empty, preserving its existing defaulting behavior.

Tests

  • mvn -pl spec,server-common -am -Dtest=TaskPushNotificationConfigTest,InMemoryPushNotificationConfigStoreTest -Dsurefire.failIfNoSpecifiedTests=false test

    • TaskPushNotificationConfigTest: 1 passed
    • InMemoryPushNotificationConfigStoreTest: 33 passed
  • Follow the CONTRIBUTING guide

  • Use a conventional commit title

  • Tests pass

  • README changes are not needed for this API-contract correction

Fixes #1081 🦕

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

Successfully merging this pull request may close these issues.

[Bug]: TaskPushNotificationConfig.id is enforced as required, contradicting the spec where id is optional on create

1 participant