Skip to content

Does turning schemaFaker=false do anything ? #842

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Zino-ctrlZ opened this issue Jan 29, 2025 · 1 comment
Open

Does turning schemaFaker=false do anything ? #842

Zino-ctrlZ opened this issue Jan 29, 2025 · 1 comment

Comments

@Zino-ctrlZ
Copy link

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] }
  }
}
@thommeo
Copy link

thommeo commented Mar 26, 2025

Looks like it's hard coded

// hardcoding this option - not exposed to users yet
this.computedOptions.schemaFaker = true;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants