Skip to content

AnyOf / OneOf options for the response of the API. #317

@MytsYurii

Description

@MytsYurii

how to implement the dynamic response for the API?

i need to cover the case to return the different response structs for the customers. for example : list of devices, or list of the users, depends on the query params.

the interface is not enough as I want to let the customers know which fields potentially can be there in the response.

to make it works I need AnyOf or OneOf options which is present in the swagger itself.

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