openapi-to-postman icon indicating copy to clipboard operation
openapi-to-postman copied to clipboard

Does turning schemaFaker=false do anything ?

Open Zino-ctrlZ opened this issue 9 months ago • 1 comments

I'm using the cli to convert a json swagger v2 file to postman collection by running

openapi2postmanv2 -s specData.json -o collection.json -p -O schemaFaker=false;    

yet I still get errors that look like this

Error faking a schema. Not faking this schema. Schema: {
  type: 'object',
  properties: {
    message: { type: 'string', default: '<string>' },
    code: { type: 'string', default: '<string>' },
    status: { type: 'integer', default: '<integer>' },
    entityId: { type: 'string', default: '<string>' },
    entityName: { type: 'string', default: '<string>' },
    messageWithParams: { type: 'string', default: '<string>' },
    messageParams: { type: 'object', additionalProperties: [Object], properties: {} },
    contextId: { type: 'string', default: '<string>' },
    details: { type: 'array', items: [Object] },
    errors: { type: 'array', items: '[Circular]' },
    limit: { type: 'object', properties: [Object] }
  }
}

Zino-ctrlZ avatar Jan 29 '25 17:01 Zino-ctrlZ