Skip to content

SwaggerODataSample error #542

Closed
Closed
@spaasis

Description

@spaasis

Hi, and thanks for the brilliant library!

I was studying the SwaggerODataSample and noticed that doing a GET to /api/Orders?api-version=2.0&%24count=false (default values from swagger) returns an error:

The query specified in the URI is not valid. The entity set 'Orders' cannot be used for $count.

The query works fine if we remove Count from the AllowedQueryOptions.

I don't yet know enough about OData to propose a fix, so just a heads up this time.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions