Skip to content

Stream support for arrays of objects #1992

@martin-moser

Description

@martin-moser

Hi,

Maybe I don't get it, and you can help me. With OpenAPI I can describe an API that returns an array of objects, say Pets. Pets are simply structured objects an in swagger-samples\java\java-resteasy-appclasses (branch 2.0).
This is fine as long as I know how many Pets there are and their number is reasonably small. When it comes to huge numbers of objects where you sometimes do not know ahead of time how many there will be, I am stuck. What I think is needed is a "stream" type that leaves the size of the response open, and provides the response as "chunked". This allows the sender to send piece by piece and the receiver to process the incoming pieces one by one. The advantages of this kind of streaming are obvious, I assume. (Would also nicely interface with technologies like Java streams ...)
Any support for this kind of streams planned?

Best, Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions