[Breaking Change] Rule "ReferenceRedirection" treats "$ref" and equivalent primitive type as incompatible
- Dominant language
- C#
- Stars
- 135
- Forks
- 260
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 143
Description
In https://github.com/Azure/azure-rest-api-specs/pull/26658, check "Swagger BreakingChange" seems to think a "$ref" and the equivalent primitive type are incompatible:

```
// from
"properties": {
"kind": {
"type": "string",
"description": "The type discriminator describing a sub-type of QueueSelectorAttachment"
}
},
// to
"properties": {
"kind": {
"$ref": "#/definitions/QueueSelectorAttachmentKind",
"description": "The type discriminator describing a sub-type of QueueSelectorAttachment"
}
},
"QueueSelectorAttachmentKind": {
"type": "string",
"enum": [ "conditional", ... ],
"x-ms-enum": { "modelAsString": true,
```
Related: #7271
Contributor guide
Assessment
This issue has not been assessed yet.