Skip to content

OData path parameter - '$' dollar sign #1469

@nastassiar

Description

@nastassiar

Sorry If this issue is in the wrong place but I'm having an issue very similar to:
swagger-api/swagger-editor#308

I am using Swashbuckle.Core.5.2.1.

I am trying to add Odata Parameters to my Get queries

operation.parameters.Add(new Parameter
{
     name = "$top",
     required = false,
     type = "string",
     @in = "query",
     description = "Maximum number of results to return"
});

I am expecting the resulting url to look like /apps?$top=&$skip=1

But instead it is coming out as /apps?%24top=2&%24skip=1

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