Skip to content
New issue

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

Add xml support to openapi3 #4214

Merged
merged 156 commits into from
Oct 28, 2024
Merged

Conversation

skywing918
Copy link
Member

@skywing918 skywing918 commented Aug 20, 2024

  1. add test cases based on Examples
  2. add xml in OpenAPI3Schema type
  3. update schema-emitter logic for support xml object

@skywing918 skywing918 changed the title initial xml schema Add xml support to openapi3 Aug 20, 2024
@skywing918 skywing918 marked this pull request as draft August 28, 2024 07:06
@timotheeguerin
Copy link
Member

/azp run typespec - pr tools

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@timotheeguerin timotheeguerin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some message change and a question on a warning but otherwise I think this starts to look good, @chrisradek was also going to take another look to have another set of eyes to double check we implemented it respecting openapi3/typespec specs

Copy link
Member

@chrisradek chrisradek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding XML support!

Edit: Nevermind - disregard my previous post - @timotheeguerin pointed out how to rename array items using custom scalars!

packages/playground-website/src/config.ts Outdated Show resolved Hide resolved
packages/openapi3/test/xml-models.test.ts Outdated Show resolved Hide resolved
@timotheeguerin timotheeguerin added this pull request to the merge queue Oct 28, 2024
Merged via the queue into microsoft:main with commit f5ceafd Oct 28, 2024
18 checks passed
swatkatz pushed a commit to swatkatz/typespec that referenced this pull request Nov 5, 2024
1. add test cases based on
[Examples](https://tspwebsitepr.z22.web.core.windows.net/prs/2982/docs/next/release-notes/xml-support.html#examples)
2. add xml in OpenAPI3Schema type
3. update schema-emitter logic for support xml object

---------

Co-authored-by: Kyle Zhang <v-zhanh@microsoft.com>
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
Co-authored-by: Wanpeng Li <wanl@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants