You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into the following warnings+errors when compiling this spec and can't suppress them:
PS C:\Users\caperal\repos\azure-rest-api-specs\specification\storage\Microsoft.BlobStorage> tsp compile .
TypeSpec compiler v0.64.0
Diagnostics were reported during compilation:
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'x-ms-meta'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'metadata'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'x-ms-meta'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'metadata'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'objectReplicationRules'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'metadata'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'objectReplicationRules'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'metadata'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'objectReplicationRules'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'x-ms-meta'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'x-ms-meta'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'x-ms-meta'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'x-ms-meta'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'metadata'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'metadata'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'x-ms-meta'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'x-ms-meta'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'x-ms-meta'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'x-ms-meta'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/node_modules/@typespec/compiler/lib/intrinsics.tsp:191:7 - warning @azure-tools/typespec-autorest/unsupported-param-type: Parameter can only be represented as primitive types in swagger 2.0. Information is lost for part 'x-ms-meta'.
> 191 | model Record<Element> {}
| ^^^^^^
../C:/Users/caperal/repos/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage/models.tsp:208:36 - occurred while instantiating template
> 208 | @Xml.name("Metadata") metadata?: Record<string>;| ^^^^^^^^^^^^^^
Found 20 warnings.
Since warnings are shown as errors in ci in the specs repo, this will block merging the PR. Spoke to @timotheeguerin who suggested the error might need to be moved in order to be able to suppress it in the spec.
Describe the bug
Ran into the following warnings+errors when compiling this spec and can't suppress them:
Since warnings are shown as errors in ci in the specs repo, this will block merging the PR. Spoke to @timotheeguerin who suggested the error might need to be moved in order to be able to suppress it in the spec.
Reproduction
Link to spec: https://github.com/Azure/azure-rest-api-specs/tree/feature/blob-tsp/specification/storage/Microsoft.BlobStorage
Example definition causing the problem:
Checklist
The text was updated successfully, but these errors were encountered: