Record<unknown> emits swagger violating lint
Open
feature
lib:azure-core
triaged:core
- Dominant language
- TypeScript
- Stars
- 27
- Forks
- 90
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 156
Description
In this PR https://github.com/Azure/azure-rest-api-specs/pull/43531/changes we have `PatchModel = Record` which emits
```
"schema": {
"type": "object",
"additionalProperties": {}
}
```
This makes linter report
```
Inline/anonymous models must not be used, instead define a schema with a model name in the "definitions" section and refer to it. This allows operations to share the models.
```
See error message here https://github.com/Azure/azure-rest-api-specs/actions/runs/27249953557
Contributor guide
Assessment
This issue has not been assessed yet.