Skip to content

Support for Path parameters #1

@stepan-romankov

Description

@stepan-romankov

Could you add support for Path parameters, so that your with_query_string test which looks like
swagger_add_router!( swagger_object, "GET", "/{val1}", SimpleStruct, 200, DESCRIPTION, SimpleStruct );

produces following output in yaml:
"parameters": [ { "name": "val1", "in": "path", "required": true, "schema": <u8>::get_json_schema_definition(), }, ...
"in": "path" instead of "in":"query"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions