Skip to content

[http-client-java] Generate polymorphic SSE event models #11943

Description

Clear and concise description of the problem

The Java emitter needs a consistent model shape for SSE operations that can emit multiple service-defined event kinds.

Acceptance criteria

  • Selects and generates one representation, such as per-event wrappers, a marker hierarchy, or a service union.
  • Preserves discriminator information for known event kinds.
  • Defines behavior for unknown and terminal event kinds.
  • Maintains forward-compatible deserialization and includes generated tests.

Dependencies

Checklist

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

emitter:client:javaIssue for the Java client emitter: @typespec/http-client-javafeatureNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions