Skip to content

sequential media types #314

Closed
Closed

Activity

  1. hauner commented on Oct 11, 2025

    @hauner
    MemberAuthor
    • content type mapping allows us to set the streaming result
    • the processor should generate the ˋitemSchemaˋ dto
  2. hauner commented on Oct 11, 2025

    @hauner
    MemberAuthor

    content type mapping may not be the best approach. It maps the result schema type to the streaming type type but drops generation of the schema dto. This is the expected behavior but unwanted in this case.

    A better approach is probably using a result mapping. This does not work out of the box as it currently assumes to be generic wrapper type: It generates StreamingResponseBody<JsonlGetResponse200> getJsonl(). But configuring a result mapping that does not want a generic type looks like the more logic and cleaner solution.

    could be something like this, saying use a plain result type with the given type:

    map:
      paths:
        /jsonl:
          result: plain => org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody
  3. added a commit that references this issue on Oct 12, 2025
  4. added this to the 2025.6 milestone on Oct 18, 2025
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions