Forum Discussion

bluecoder77's avatar
New Contributor
5 years ago

Import XML Schema as Component?

First off, can I just say I really like the work y'all have done here with Swagger Hub. I think it's really amazing and just wanted to say thank you.

Next, I am charged with some contract work that involves writing an OpenAPI 3.0. The response types required for many of the REST API methods are XML and they have some very extensive XML Schemas that could change outside of my controls. So I have a couple questions:


1. Is it possible to define an OpenAPI 3.0 so that it references an XML Schema? 

2. If I have to convert the XML Schema into a component, is there a way to automatically do this? I feel like if I have to manually do that, the process will be error-prone and when it comes to updating, that will also be an error-prone process.

2 Replies