Skip to content

OData APIExplorer route template with KeyAsSegment should not quote strings #526

Closed
@Rob4001

Description

@Rob4001

Related to #502
Paths being generated for our Swagger docs are including paths such as /API/v1/Resource/'{key}'/SubResource

While the server side routes are /API/v1/Resource/{key}/SubResource

Creating the issue where swagger "try it out" includes the quotes which will be passed to the controller as "'key'".

It looks like the ODataRouteBuilder has the functionality to bypass quotation when KeyAsSegment is set to true but is not passing through to ExpandParameterTemplate when only a single (or first) key

Thanks in advance, really appreciate the library

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions