We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playground
The array arr3 without xml decorators are also get impacted which is unexpected.
arr3
Input:
import "@typespec/http"; import "@typespec/xml"; using TypeSpec.Http; using TypeSpec.Xml; @service namespace Foo; @name("A_xml") scalar A extends string; @name("B_xml") scalar B extends A; scalar AA extends string; scalar BB extends AA; model Book { arr: B[]; arr2: A[]; arr3: BB[]; }
Output:
openapi: 3.1.0 info: title: (title) version: 0.0.0 tags: [] paths: {} components: schemas: A: type: string xml: name: A_xml AA: type: string B: type: string xml: name: B_xml BB: type: string Book: type: object required: - arr - arr2 - arr3 properties: arr: type: array items: xml: name: B_xml xml: wrapped: true arr2: type: array items: type: string xml: name: A_xml xml: wrapped: true arr3: type: array items: xml: # --> why this is impacted? name: BB xml: wrapped: true
The text was updated successfully, but these errors were encountered:
@skywing918 could you take a look?
Sorry, something went wrong.
Actually, any part of the model book using xml decorators, it will be affected, even if the array arr3 without xml decorators.
book
wanlwanl
No branches or pull requests
Describe the bug
Playground
The array
arr3
without xml decorators are also get impacted which is unexpected.Reproduction
Input:
Output:
Checklist
The text was updated successfully, but these errors were encountered: