I try to use your API features as we are working on APIs.
Is there any way to see the examples from the swagger documents?
So if I imported my yaml, then the Postman does not use the example for the parameters, it puts only the types there for example xxxx?parameter= insted of xxxx?paramter=exampleValue. This is the case with the responses too.
Is this a bug, or I just did not find the way to use the examples?
This is also a problem for me - I have not found a solution for parameter examples.
Postman will import examples into a request body if they are stored at the schema: level (OAS3), but not if stored in children of schema:.
Also a problem for us. We have plenty of examples defined in our Raw OpenAPI 3.03 schema generated directly from our codebase using Django Rest Framework with DRF Spectacular as well.
And example here (have not included the schema for the whole endpoint):
…
…
…
application/json:
schema:
$ref: ‘#/components/schemas/MyCoolSchema’
examples:
MyCoolSchema:
value:
geometry: ‘{ “type”: “LineString”, “coordinates”: [ [ 16.369429095215196,
48.215260792384441 ], [ 16.36925, 48.21543 ] ]}’
corridor_width: 250
summary: A good summary
description: An object that conforms to the geojson standard. The
body contains a list of points describing a route
application/x-www-form-urlencoded:
schema:
$ref: ‘#/components/schemas/MyCoolSchema’
…
…
…
I this case i would like the corridor_width and the geometry to have the examples populated in their value fields in Postman instead of simply the type.