Showing results for 
Search instead for 
Did you mean: 
Welcome to the September Hub-bub

We are inviting you to join our exciting online event where you can learn a lot of useful information, share your knowledge and have fun. Each week, we will reward the best posters with free gift cards .

Just pick any topic you like in the SwaggerHub Community, or create your own to dive into the wonderful September Hub-bub.

Event duration: September 2-27. More information.

This Week Top Contributors:

We will decide the winners next Monday

paste json payload

New Contributor

paste json payload

Hi all,

I've created the API path and request body. Then I need to create the payload.

I'm trying to create a repeatable number of steps to create the documented API. e.g. I use XMPSpy, create my payload, import the json into my API. It asks if I want to import as YAML. I say yes. The errors I get imply that I still need to do a lot of manual work after that to create individual schemas. Is this correct or am I misunderstanding?

New Contributor

Re: paste json payload


..would it be ok, if you shared your json? i can give it a test... what version of SwaggerHub are you on?  ..also keep in mind that Technically YAML is a superset of JSON. This means that, in theory at least, a YAML parser can understand JSON, but not necessarily the other way around. ... YAML is more robust about embedding other serialization formats such as JSON or XML within a YAML file....




New Contributor

Re: paste json payload

Hi Miqui


Thanks for the reply.

I was using a trial copy but this has expired. I'm waiting for a license. In the meantime, Swaggerhub have said that you can't import json directly into Swaggerhub. Instead they have suggested some online json to yaml converters but recommend directly typing into swaggerhub (not great when you have a large Request payload for an HTTP POST).  

New Here?
Join us and watch the welcome video:
Watch the New Interview
Join the September Hub-bub to show off, learn and win