Skip to content

@RequestBody should be populated with @Consumes from method or class when mediaType is not specified #2403

@arturdzm

Description

@arturdzm

Since the RequestBody, ApiResponse and Parameter all have content
I think we can have 1 method called
getContent(Content[] content, String[] mediaTypes)
so each type can pass in value() of @consumes or @produces
or null if no mediaTypes specified.
if mediaTypes is null set it to */*

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