OpenAPI 3.1.0 import values not taken from examples given in the spec

My question:

I’m importing an openapi 3.1.0 schema into my workspace, and every value set by default is wrong. It’s always following this pattern: (eg: , ) while my openapi document contains examples for each attribute.

Details (like screenshots):

image

"render-image-post-params": {
  "type": "object",
  "properties": {
    "templateId": {
      "type": "string",
      "description": "The ID of the template to render",
      "title": "Template ID",
      "example": "592dd982-4a1b-4cd9-ab11-21481d5a0064" // <= example here
    },
    "imageFile": {
      "type": "string",
      "description": "The image file to render",
      "title": "Image File",
      "format": "binary"
    },
    "imageUrl": {
      "type": "string",
      "format": "uri",
      "description": "Deprecated, use `imageFile` instead.",
      "title": "Image URL",
      "example": "https://s3.amazonaws.com/a.storyblok.com/f/191576/1024x1024/d25e1a99d7/sample-05.png", // <= example here
      "deprecated": true
    }
  },
  "required": [
    "templateId"
  ],
  "title": "Render image POST params"
      },

How I found the problem:

Imported https://beta-sdk.photoroom.com/openapi as a new collection in Postman App
image

Thank you so much for your help!
Max

I have the same, I use this already a lot of time.
until some Postman upgrade, The import showed the value.
I read somwhere that this is gone since Postman version 8 ?

Hi all!

When importing, be sure to check the “Parameter Generation” option.

Using the photoroom example, after setting the type to “Example”, I was able to import examples

2 Likes

indeed it works better now, thank you.