microsoft / microsoft/typespec
[OpenAPI 3] Duplicate schema with create visibility and model used in an array and as singleton
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
[Playground Link](https://typespec.io/playground/?c=aW1wb3J0ICJAdHlwZXNwZWMvaHR0cCI7Cgp1c2luZyBUeXBlU3BlYy5IdHRwOwoKCm1vZGVsIFRvZG9GaWxlQXR0YWNobWVudCB7CiAgLyoqIFRoZSBjb250ZW50cyBvZiB0aGUgZmlsZSAqLwogIEB2aXNpYmlsaXR5KExpZmVjeWNsZS5DcmVhdGUpyTg6IGJ5dGVzOwp9CgpAcG9zdCBvcCBjxSUoYclzczrzAIhbXSk6IHZvaWQ7CgpAcm91dGUoIi%2FkAMtsZSIp0E1TxRjfU3TKUS8vIEBnZcVBcmVhZCgp1C87&e=%40typespec%2Fopenapi3&options=%7B%7D)
There are two possibly related issues here. First, without the final line, we should have the good name for both (i.e. not suffixed with Create). Second, we are seeing two identical schemas, one for the array case and one for the normal case. On the get/read side this does not occur.
Contributor guide
Assessment
This issue has not been assessed yet.