Skip to content

Why is binary type declared in oatpp::swagger namespace? [Endpoint Documentation] #1062

@Saadharta

Description

@Saadharta

Hello,
I was playing with oatpp1.3.0 trying to fill an ENDPOINT_INFO macro for an endpoint expecting a binary file input as request body (to upload pictures).

I found this issue (47) which helped me fix my lack of documentation :

"requestBody": {
    "required": true,
    "content": {
        "image/png": {
            "schema": {
                "type": "string",
                "format": "binary"
            }
        }
    }
},

However it made me also wonder : why is the classe Binary located inside the oatpp::swagger namespace instead of the oatpp::data::mapping::type namespace (or oatpp::data::type in oatpp1.4.0) like any other OATPP types?

Thank you in advance for any clues about why this is as it is.

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