Skip to content

Unable to use swagger_context in subresource #1873

Closed
@jeffreymb

Description

@jeffreymb

I have a subresource definition on a DTO class as follows:

 *     subresourceOperations={
 *          "chapters_get_subresource"={
 *              "path"="bibles/{version}/books/{book}/chapters",
 *              "swagger_context"={
 *                  "parameters"={
 *                      {"name"="version", "in"="path", "type"="string", "required"=true},
 *                      {"name"="book", "in"="path", "type"="string", "required"=true},
 *                  },
 *              },
 *          },
 *     },

The swagger_context has no effect in the swagger UI. Am I doing something wrong or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions