Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@raphael
Copy link
Member

@raphael raphael commented Aug 16, 2025

HTTP: Reserve the service package identifier so generated endpoint parameter names do not collide with it in user code.
JSON-RPC (SSE): Ensure errors are surfaced correctly during server-sent events streaming.
Scope

- Updated the SSE server stream template to correctly handle multiple error responses by iterating through nested error structures.
- Ensured that the generated code properly emits error handling cases for each defined error, improving robustness in SSE implementations.

Tests: all unit tests pass; JSON-RPC integration tests pass.
…meter name collisions

- Updated the analyze method in ServicesData to reserve the service package name, ensuring it does not conflict with parameter names in generated code.

Tests: all unit tests pass.
@raphael raphael enabled auto-merge (squash) August 16, 2025 22:19
@raphael raphael merged commit a9c0758 into v3 Aug 16, 2025
13 checks passed
@raphael raphael deleted the fix/codegen-service-name-collision-sse-errors branch August 16, 2025 22:21
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.

1 participant