[GetCollectionOnlyHasValueAndNextLink] Not handle singleton URL - false positive
- Dominant language
- C#
- Stars
- 135
- Forks
- 260
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 144
Description
**Describe the bug**
singleton url like "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfilesSummaries/default" is taken as collection url
```json
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfilesSummaries/default": {
"get": {
"tags": [
"BillingProfilesSummaries"
],
"description": "Gets the summary of billing profiles under a billing account. The operation is supported for billing accounts with agreement type Enterprise Agreement.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"operationId": "BillingProfilesSummaries_Get",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "./types.json#/parameters/billingAccountName"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/BillingProfilesSummary"
}
},
"default": {
"description": "Default response",
"schema": {
"$ref": "./types.json#/definitions/ArmErrorResponse"
}
}
},
"x-ms-examples": {
"BillingProfilesSummaries_Get": {
"$ref": "./examples/BillingProfilesSummariesGet.json"
}
}
}
}
},
```
**To Reproduce**
Steps to reproduce the behavior:
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Additional context**
https://github.com/Azure/azure-rest-api-specs-pr/pull/12774
Contributor guide
Assessment
This issue has not been assessed yet.