Swagger fails rendering public IActionResult Get(ODataQueryOptions<T> queryOptions)
Open
@xuzhg is already working on this.
Since Dec 7, 2021.
followup
- Dominant language
- C#
- Stars
- 505
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Description
- Build sample ...\OData\AspNetCoreOData\sample\ODataRoutingSample\Controllers\AccountsController.cs
- Browse to http://localhost:64771/swagger/index.html
- Attempt to execute GET /api/Accounts
Observed Swagger chokes on the ODataQueryOptions parameter and renders.
curl -X GET "http://localhost:64771/api/Accounts?ifMatch[isWellFormed]=true&ifMatch[entityType][memberType]=1&ifMatch[entityType][assembly][entryPoint][memberType]=1&ifMatch[entityType][assembly][entryPoint][returnParameter][attributes]=0&ifMatch[entityType][assembly][entryPoint][returnParameter][member][memberType]=1&ifMatch[entityType][assembly][entryPoint][attributes]=0&ifMatch[entityType][assembly][entryPoint][methodImplementationFlags]=0&ifMatch[entityType][assembly][entryPoint][callingConvention]=1&ifMatch[entityType][assembly][securityRuleSet]=0&ifMatch[entityType][declaringMethod][attributes]=0&ifMatch[entityType][declaringMethod][methodImplementationFlags]=0&ifMatch[entityType][declaringMethod][callingConvention]=1&ifMatch[entityType][declaringMethod][memberType]=1&ifMatch[entityType][genericParameterAttributes]=0&ifMatch[entityType][attributes]=0&ifMatch[entityType][structLayoutAttribute][value]=0&ifMatch[entityType][typeInitializer][memberType]=1&ifMatch[entityType][typeInitializer][attributes]=0&ifMatch[entityType][typeInitializer][methodImplementationFlags]=0&ifMatch[entityType][typeInitializer][callingConvention]=1&ifMatch[isAny]=true&ifMatch[isIfNoneMatch]=true&ifNoneMatch[isWellFormed]=true&ifNoneMatch[entityType][memberType]=1&ifNoneMatch[entityType][assembly][entryPoint][memberType]=1&ifNoneMatch[entityType][assembly][entryPoint][returnParameter][attributes]=0&ifNoneMatch[entityType][assembly][entryPoint][returnParameter][member][memberType]=1&ifNoneMatch[entityType][assembly][entryPoint][attributes]=0&ifNoneMatch[entityType][assembly][entryPoint][methodImplementationFlags]=0&ifNoneMatch[entityType][assembly][entryPoint][callingConvention]=1&ifNoneMatch[entityType][assembly][securityRuleSet]=0&ifNoneMatch[entityType][declaringMethod][attributes]=0&ifNoneMatch[entityType][declaringMethod][methodImplementationFlags]=0&ifNoneMatch[entityType][declaringMethod][callingConvention]=1&ifNoneMatch[entityType][declaringMethod][memberType]=1&ifNoneMatch[entityType][genericParameterAttributes]=0&ifNoneMatch[entityType][attributes]=0&ifNoneMatch[entityType][structLayoutAttribute][value]=0&ifNoneMatch[entityType][typeInitializer][memberType]=1&ifNoneMatch[entityType][typeInitializer][attributes]=0&ifNoneMatch[entityType][typeInitializer][methodImplementationFlags]=0&ifNoneMatch[entityType][typeInitializer][callingConvention]=1&ifNoneMatch[isAny]=true&ifNoneMatch[isIfNoneMatch]=true&request[httpContext][response][statusCode]=0&request[httpContext][response][body][position]=0&request[httpContext][response][body][readTimeout]=0&request[httpContext][response][body][writeTimeout]=0&request[httpContext][response][contentLength]=0&request[httpContext][response][contentType]=string&request[httpContext][connection][id]=string&request[httpContext][connection][remoteIpAddress][addressFamily]=0&request[httpContext][connection][remoteIpAddress][scopeId]=0&request[httpContext][connection][remotePort]=0&request[httpContext][connection][localIpAddress][addressFamily]=0&request[httpContext][connection][localIpAddress][scopeId]=0&request[httpContext][connection][localPort]=0&request[httpContext][connection][clientCertificate][archived]=true&request[httpContext][connection][clientCertificate][friendlyName]=string&request[httpContext][connection][clientCertificate][privateKey][keySize]=0&request[httpContext][connection][clientCertificate][issuerName][oid][value]=string&request[httpContext][connection][clientCertificate][issuerName][oid][friendlyName]=string&request[httpContext][connection][clientCertificate][issuerName][rawData]=string&request[httpContext][connection][clientCertificate][publicKey][encodedKeyValue][oid][value]=string&request[httpContext][connection][clientCertificate][publicKey][encodedKeyValue][oid][friendlyName]=string&request[httpContext][connection][clientCertificate][publicKey][encodedKeyValue][rawData]=string&request[httpContext][connection][clientCertificate][publicKey][encodedParameters][oid][value]=string&request[httpContext][connection][clientCertificate][publicKey][encodedParameters][oid][friendlyName]=string&request[httpContext][connection][clientCertificate][publicKey][encodedParameters][rawData]=string&request[httpContext][connection][clientCertificate][publicKey][key][keySize]=0&request[httpContext][connection][clientCertificate][publicKey][oid][value]=string&request[httpContext][connection][clientCertificate][publicKey][oid][friendlyName]=string&request[httpContext][connection][clientCertificate][signatureAlgorithm][value]=string&request[httpContext][connection][clientCertificate][signatureAlgorithm][friendlyName]=string&request[httpContext][connection][clientCertificate][subjectName][oid][value]=string&request[httpContext][connection][clientCertificate][subjectName][oid][friendlyName]=string&request[httpContext][connection][clientCertificate][subjectName][rawData]=string&request[httpContext][traceIdentifier]=string&request[method]=string&request[scheme]=string&request[isHttps]=true&request[protocol]=string&request[contentLength]=0&request[contentType]=string&request[body][position]=0&request[body][readTimeout]=0&request[body][writeTimeout]=0&context[defaultQuerySettings][enableExpand]=true&context[defaultQuerySettings][enableSelect]=true&context[defaultQuerySettings][enableCount]=true&context[defaultQuerySettings][enableOrderBy]=true&context[defaultQuerySettings][enableFilter]=true&context[defaultQuerySettings][maxTop]=0&context[defaultQuerySettings][enableSkipToken]=true&context[elementType][typeKind]=0&context[navigationSource][type][typeKind]=0&context[elementClrType][memberType]=1&context[elementClrType][assembly][entryPoint][memberType]=1&context[elementClrType][assembly][entryPoint][returnParameter][attributes]=0&context[elementClrType][assembly][entryPoint][returnParameter][member][memberType]=1&context[elementClrType][assembly][entryPoint][attributes]=0&context[elementClrType][assembly][entryPoint][methodImplementationFlags]=0&context[elementClrType][assembly][entryPoint][callingConvention]=1&context[elementClrType][assembly][securityRuleSet]=0&context[elementClrType][declaringMethod][attributes]=0&context[elementClrType][declaringMethod][methodImplementationFlags]=0&context[elementClrType][declaringMethod][callingConvention]=1&context[elementClrType][declaringMethod][memberType]=1&context[elementClrType][genericParameterAttributes]=0&context[elementClrType][attributes]=0&context[elementClrType][structLayoutAttribute][value]=0&context[elementClrType][typeInitializer][memberType]=1&context[elementClrType][typeInitializer][attributes]=0&context[elementClrType][typeInitializer][methodImplementationFlags]=0&context[elementClrType][typeInitializer][callingConvention]=1&selectExpand[context][defaultQuerySettings][enableExpand]=true&selectExpand[context][defaultQuerySettings][enableSelect]=true&selectExpand[context][defaultQuerySettings][enableCount]=true&selectExpand[context][defaultQuerySettings][enableOrderBy]=true&selectExpand[context][defaultQuerySettings][enableFilter]=true&selectExpand[context][defaultQuerySettings][maxTop]=0&selectExpand[context][defaultQuerySettings][enableSkipToken]=true&selectExpand[context][elementType][typeKind]=0&selectExpand[context][navigationSource][type][typeKind]=0&selectExpand[context][elementClrType][memberType]=1&selectExpand[context][elementClrType][assembly][entryPoint][memberType]=1&selectExpand[context][elementClrType][assembly][entryPoint][returnParameter][attributes]=0&selectExpand[context][elementClrType][assembly][entryPoint][returnParameter][member][memberType]=1&selectExpand[context][elementClrType][assembly][entryPoint][attributes]=0&selectExpand[context][elementClrType][assembly][entryPoint][methodImplementationFlags]=0&selectExpand[context][elementClrType][assembly][entryPoint][callingConvention]=1&selectExpand[context][elementClrType][assembly][securityRuleSet]=0&selectExpand[context][elementClrType][declaringMethod][attributes]=0&selectExpand[context][elementClrType][declaringMethod][methodImplementationFlags]=0&selectExpand[context][elementClrType][declaringMethod][callingConvention]=1&selectExpand[context][elementClrType][declaringMethod][memberType]=1&selectExpand[context][elementClrType][genericParameterAttributes]=0&selectExpand[context][elementClrType][attributes]=0&selectExpand[context][elementClrType][structLayoutAttribute][value]=0&selectExpand[context][elementClrType][typeInitializer][memberType]=1&selectExpand[context][elementClrType][typeInitializer][attributes]=0&selectExpand[context][elementClrType][typeInitializer][methodImplementationFlags]=0&selectExpand[context][elementClrType][typeInitializer][callingConvention]=1&selectExpand[levelsMaxLiteralExpansionDepth]=0&apply[context][defaultQuerySettings][enableExpand]=true&apply[context][defaultQuerySettings][enableSelect]=true&apply[context][defaultQuerySettings][enableCount]=true&apply[context][defaultQuerySettings][enableOrderBy]=true&apply[context][defaultQuerySettings][enableFilter]=true&apply[context][defaultQuerySettings][maxTop]=0&apply[context][defaultQuerySettings][enableSkipToken]=true&apply[context][elementType][typeKind]=0&apply[context][navigationSource][type][typeKind]=0&apply[context][elementClrType][memberType]=1&apply[context][elementClrType][assembly][entryPoint][memberType]=1&apply[context][elementClrType][assembly][entryPoint][returnParameter][attributes]=0&apply[context][elementClrType][assembly][entryPoint][returnParameter][member][memberType]=1&apply[context][elementClrType][assembly][entryPoint][attributes]=0&apply[context][elementClrType][assembly][entryPoint][methodImplementationFlags]=0&apply[context][elementClrType][assembly][entryPoint][callingConvention]=1&apply[context][elementClrType][assembly][securityRuleSet]=0&apply[context][elementClrType][declaringMethod][attributes]=0&apply[context][elementClrType][declaringMethod][methodImplementationFlags]=0&apply[context][elementClrType][declaringMethod][callingConvention]=1&apply[context][elementClrType][declaringMethod][memberType]=1&apply[context][elementClrType][genericParameterAttributes]=0&apply[context][elementClrType][attributes]=0&apply[context][elementClrType][structLayoutAttribute][value]=0&apply[context][elementClrType][typeInitializer][memberType]=1&apply[context][elementClrType][typeInitializer][attributes]=0&apply[context][elementClrType][typeInitializer][methodImplementationFlags]=0&apply[context][elementClrType][typeInitializer][callingConvention]=1&apply[resultClrType][memberType]=1&apply[resultClrType][assembly][entryPoint][memberType]=1&apply[resultClrType][assembly][entryPoint][returnParameter][attributes]=0&apply[resultClrType][assembly][entryPoint][returnParameter][member][memberType]=1&apply[resultClrType][assembly][entryPoint][attributes]=0&apply[resultClrType][assembly][entryPoint][methodImplementationFlags]=0&apply[resultClrType][assembly][entryPoint][callingConvention]=1&apply[resultClrType][assembly][securityRuleSet]=0&apply[resultClrType][declaringMethod][attributes]=0&apply[resultClrType][declaringMethod][methodImplementationFlags]=0&apply[resultClrType][declaringMethod][callingConvention]=1&apply[resultClrType][declaringMethod][memberType]=1&apply[resultClrType][genericParameterAttributes]=0&apply[resultClrType][attributes]=0&apply[resultClrType][structLayoutAttribute][value]=0&apply[resultClrType][typeInitializer][memberType]=1&apply[resultClrType][typeInitializer][attributes]=0&apply[resultClrType][typeInitializer][methodImplementationFlags]=0&apply[resultClrType][typeInitializer][callingConvention]=1&filter[context][defaultQuerySettings][enableExpand]=true&filter[context][defaultQuerySettings][enableSelect]=true&filter[context][defaultQuerySettings][enableCount]=true&filter[context][defaultQuerySettings][enableOrderBy]=true&filter[context][defaultQuerySettings][enableFilter]=true&filter[context][defaultQuerySettings][maxTop]=0&filter[context][defaultQuerySettings][enableSkipToken]=true&filter[context][elementType][typeKind]=0&filter[context][navigationSource][type][typeKind]=0&filter[context][elementClrType][memberType]=1&filter[context][elementClrType][assembly][entryPoint][memberType]=1&filter[context][elementClrType][assembly][entryPoint][returnParameter][attributes]=0&filter[context][elementClrType][assembly][entryPoint][returnParameter][member][memberType]=1&filter[context][elementClrType][assembly][entryPoint][attributes]=0&filter[context][elementClrType][assembly][entryPoint][methodImplementationFlags]=0&filter[context][elementClrType][assembly][entryPoint][callingConvention]=1&filter[context][elementClrType][assembly][securityRuleSet]=0&filter[context][elementClrType][declaringMethod][attributes]=0&filter[context][elementClrType][declaringMethod][methodImplementationFlags]=0&filter[context][elementClrType][declaringMethod][callingConvention]=1&filter[context][elementClrType][declaringMethod][memberType]=1&filter[context][elementClrType][genericParameterAttributes]=0&filter[context][elementClrType][attributes]=0&filter[context][elementClrType][structLayoutAttribute][value]=0&filter[context][elementClrType][typeInitializer][memberType]=1&filter[context][elementClrType][typeInitializer][attributes]=0&filter[context][elementClrType][typeInitializer][methodImplementationFlags]=0&filter[context][elementClrType][typeInitializer][callingConvention]=1&filter[filterClause][expression][typeReference][definition][typeKind]=0&filter[filterClause][expression][kind]=0&filter[filterClause][rangeVariable][typeReference][definition][typeKind]=0&filter[filterClause][itemType][definition][typeKind]=0&orderBy[context][defaultQuerySettings][enableExpand]=true&orderBy[context][defaultQuerySettings][enableSelect]=true&orderBy[context][defaultQuerySettings][enableCount]=true&orderBy[context][defaultQuerySettings][enableOrderBy]=true&orderBy[context][defaultQuerySettings][enableFilter]=true&orderBy[context][defaultQuerySettings][maxTop]=0&orderBy[context][defaultQuerySettings][enableSkipToken]=true&orderBy[context][elementType][typeKind]=0&orderBy[context][navigationSource][type][typeKind]=0&orderBy[context][elementClrType][memberType]=1&orderBy[context][elementClrType][assembly][entryPoint][memberType]=1&orderBy[context][elementClrType][assembly][entryPoint][returnParameter][attributes]=0&orderBy[context][elementClrType][assembly][entryPoint][returnParameter][member][memberType]=1&orderBy[context][elementClrType][assembly][entryPoint][attributes]=0&orderBy[context][elementClrType][assembly][entryPoint][methodImplementationFlags]=0&orderBy[context][elementClrType][assembly][entryPoint][callingConvention]=1&orderBy[context][elementClrType][assembly][securityRuleSet]=0&orderBy[context][elementClrType][declaringMethod][attributes]=0&orderBy[context][elementClrType][declaringMethod][methodImplementationFlags]=0&orderBy[context][elementClrType][declaringMethod][callingConvention]=1&orderBy[context][elementClrType][declaringMethod][memberType]=1&orderBy[context][elementClrType][genericParameterAttributes]=0&orderBy[context][elementClrType][attributes]=0&orderBy[context][elementClrType][structLayoutAttribute][value]=0&orderBy[context][elementClrType][typeInitializer][memberType]=1&orderBy[context][elementClrType][typeInitializer][attributes]=0&orderBy[context][elementClrType][typeInitializer][methodImplementationFlags]=0&orderBy[context][elementClrType][typeInitializer][callingConvention]=1&orderBy[orderByClause][expression][typeReference][definition][typeKind]=0&orderBy[orderByClause][expression][kind]=0&orderBy[orderByClause][direction]=0&orderBy[orderByClause][rangeVariable][typeReference][definition][typeKind]=0&orderBy[orderByClause][itemType][definition][typeKind]=0&skip[context][defaultQuerySettings][enableExpand]=true&skip[context][defaultQuerySettings][enableSelect]=true&skip[context][defaultQuerySettings][enableCount]=true&skip[context][defaultQuerySettings][enableOrderBy]=true&skip[context][defaultQuerySettings][enableFilter]=true&skip[context][defaultQuerySettings][maxTop]=0&skip[context][defaultQuerySettings][enableSkipToken]=true&skip[context][elementType][typeKind]=0&skip[context][navigationSource][type][typeKind]=0&skip[context][elementClrType][memberType]=1&skip[context][elementClrType][assembly][entryPoint][memberType]=1&skip[context][elementClrType][assembly][entryPoint][returnParameter][attributes]=0&skip[context][elementClrType][assembly][entryPoint][returnParameter][member][memberType]=1&skip[context][elementClrType][assembly][entryPoint][attributes]=0&skip[context][elementClrType][assembly][entryPoint][methodImplementationFlags]=0&skip[context][elementClrType][assembly][entryPoint][callingConvention]=1&skip[context][elementClrType][assembly][securityRuleSet]=0&skip[context][elementClrType][declaringMethod][attributes]=0&skip[context][elementClrType][declaringMethod][methodImplementationFlags]=0&skip[context][elementClrType][declaringMethod][callingConvention]=1&skip[context][elementClrType][declaringMethod][memberType]=1&skip[context][elementClrType][genericParameterAttributes]=0&skip[context][elementClrType][attributes]=0&skip[context][elementClrType][structLayoutAttribute][value]=0&skip[context][elementClrType][typeInitializer][memberType]=1&skip[context][elementClrType][typeInitializer][attributes]=0&skip[context][elementClrType][typeInitializer][methodImplementationFlags]=0&skip[context][elementClrType][typeInitializer][callingConvention]=1&skipToken[context][defaultQuerySettings][enableExpand]=true&skipToken[context][defaultQuerySettings][enableSelect]=true&skipToken[context][defaultQuerySettings][enableCount]=true&skipToken[context][defaultQuerySettings][enableOrderBy]=true&skipToken[context][defaultQuerySettings][enableFilter]=true&skipToken[context][defaultQuerySettings][maxTop]=0&skipToken[context][defaultQuerySettings][enableSkipToken]=true&skipToken[context][elementType][typeKind]=0&skipToken[context][navigationSource][type][typeKind]=0&skipToken[context][elementClrType][memberType]=1&skipToken[context][elementClrType][assembly][entryPoint][memberType]=1&skipToken[context][elementClrType][assembly][entryPoint][returnParameter][attributes]=0&skipToken[context][elementClrType][assembly][entryPoint][returnParameter][member][memberType]=1&skipToken[context][elementClrType][assembly][entryPoint][attributes]=0&skipToken[context][elementClrType][assembly][entryPoint][methodImplementationFlags]=0&skipToken[context][elementClrType][assembly][entryPoint][callingConvention]=1&skipToken[context][elementClrType][assembly][securityRuleSet]=0&skipToken[context][elementClrType][declaringMethod][attributes]=0&skipToken[context][elementClrType][declaringMethod][methodImplementationFlags]=0&skipToken[context][elementClrType][declaringMethod][callingConvention]=1&skipToken[context][elementClrType][declaringMethod][memberType]=1&skipToken[context][elementClrType][genericParameterAttributes]=0&skipToken[context][elementClrType][attributes]=0&skipToken[context][elementClrType][structLayoutAttribute][value]=0&skipToken[context][elementClrType][typeInitializer][memberType]=1&skipToken[context][elementClrType][typeInitializer][attributes]=0&skipToken[context][elementClrType][typeInitializer][methodImplementationFlags]=0&skipToken[context][elementClrType][typeInitializer][callingConvention]=1&top[context][defaultQuerySettings][enableExpand]=true&top[context][defaultQuerySettings][enableSelect]=true&top[context][defaultQuerySettings][enableCount]=true&top[context][defaultQuerySettings][enableOrderBy]=true&top[context][defaultQuerySettings][enableFilter]=true&top[context][defaultQuerySettings][maxTop]=0&top[context][defaultQuerySettings][enableSkipToken]=true&top[context][elementType][typeKind]=0&top[context][navigationSource][type][typeKind]=0&top[context][elementClrType][memberType]=1&top[context][elementClrType][assembly][entryPoint][memberType]=1&top[context][elementClrType][assembly][entryPoint][returnParameter][attributes]=0&top[context][elementClrType][assembly][entryPoint][returnParameter][member][memberType]=1&top[context][elementClrType][assembly][entryPoint][attributes]=0&top[context][elementClrType][assembly][entryPoint][methodImplementationFlags]=0&top[context][elementClrType][assembly][entryPoint][callingConvention]=1&top[context][elementClrType][assembly][securityRuleSet]=0&top[context][elementClrType][declaringMethod][attributes]=0&top[context][elementClrType][declaringMethod][methodImplementationFlags]=0&top[context][elementClrType][declaringMethod][callingConvention]=1&top[context][elementClrType][declaringMethod][memberType]=1&top[context][elementClrType][genericParameterAttributes]=0&top[context][elementClrType][attributes]=0&top[context][elementClrType][structLayoutAttribute][value]=0&top[context][elementClrType][typeInitializer][memberType]=1&top[context][elementClrType][typeInitializer][attributes]=0&top[context][elementClrType][typeInitializer][methodImplementationFlags]=0&top[context][elementClrType][typeInitializer][callingConvention]=1&count[context][defaultQuerySettings][enableExpand]=true&count[context][defaultQuerySettings][enableSelect]=true&count[context][defaultQuerySettings][enableCount]=true&count[context][defaultQuerySettings][enableOrderBy]=true&count[context][defaultQuerySettings][enableFilter]=true&count[context][defaultQuerySettings][maxTop]=0&count[context][defaultQuerySettings][enableSkipToken]=true&count[context][elementType][typeKind]=0&count[context][navigationSource][type][typeKind]=0&count[context][elementClrType][memberType]=1&count[context][elementClrType][assembly][entryPoint][memberType]=1&count[context][elementClrType][assembly][entryPoint][returnParameter][attributes]=0&count[context][elementClrType][assembly][entryPoint][returnParameter][member][memberType]=1&count[context][elementClrType][assembly][entryPoint][attributes]=0&count[context][elementClrType][assembly][entryPoint][methodImplementationFlags]=0&count[context][elementClrType][assembly][entryPoint][callingConvention]=1&count[context][elementClrType][assembly][securityRuleSet]=0&count[context][elementClrType][declaringMethod][attributes]=0&count[context][elementClrType][declaringMethod][methodImplementationFlags]=0&count[context][elementClrType][declaringMethod][callingConvention]=1&count[context][elementClrType][declaringMethod][memberType]=1&count[context][elementClrType][genericParameterAttributes]=0&count[context][elementClrType][attributes]=0&count[context][elementClrType][structLayoutAttribute][value]=0&count[context][elementClrType][typeInitializer][memberType]=1&count[context][elementClrType][typeInitializer][attributes]=0&count[context][elementClrType][typeInitializer][methodImplementationFlags]=0&count[context][elementClrType][typeInitializer][callingConvention]=1" -H "accept: */*"
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.