Azure / autorest

OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python
MIT License
4.58k stars 731 forks source link

[TSP] Model extends Record<unknown> #4877

Open dvbb opened 7 months ago

dvbb commented 7 months ago

Impacted RP

CognitiveServices, DataFactory, MachineLearningCompute, Monitor, ProviderHub, ResourceGraph

Compile log

error unassignable: Type 'string' is not assignable to type 'Record'

691 | superUser?: string; | ^^^^^^

error unassignable: Type 'boolean' is not assignable to type 'Record'

659 | statisticsEnabled?: boolean; | ^^^^^^^ ^^^

Description

TSP: image

Swagger: image

tadelesh commented 6 months ago

depends on: https://github.com/microsoft/typespec/pull/2920