Azure / Azure/typespec-azure

Record<unknown> emits swagger violating lint

Open
#4,592 1 comment 0 reactions 1 assignee Claimed by @markcowl View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.