0

Is there a way to get ServiceStacks PostmanFeature to also export the 'Example value', that can be seen in the Swagger-UI, so that when I use Postman to import the spec, I also get the example value in the "raw body" in Postman?

So, I would like this 'Example value':

enter image description here

to be present here in Postman, after import:

enter image description here

Today, after import, I get it to list it as "form-data", which is not what I want:

enter image description here

EDIT

I also noticed that the "Description" column in "Params" is empty, even though I have used attributes to describe it:

enter image description here

and

enter image description here

Am I doing it wrong, or is there a way?

Ted
  • 19,727
  • 35
  • 96
  • 154
  • There are tools and libraries such as [`openapi-sampler`](https://github.com/Redocly/openapi-sampler), [Swagger Inflector](https://stackoverflow.com/a/51133923/113116) and others that can generate JSON examples based on an OpenAPI Schema definition. – Helen Nov 10 '21 at 15:32
  • Thanks Helen, could be good tools to use. I was hoping that there was a way in ServiceStack to do it, so that the plugin exports a full and ready to use collection in Postman. – Ted Nov 11 '21 at 06:48

0 Answers0