You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I change your implementation of method getResponseSchema because the resultSchema.examples is not an array and the default generator not work
I do
if (!Array.isArray(examples)) {
let arrayOfExample = []
for (const key in examples) {
arrayOfExample.push(examples[key].value)
}
resultSchema.examples = arrayOfExample;
Maybe you can add this type of feature ? maybe you can also random the reponse 200/500 or 400?
I add too an new option to generate random value for items only described into the schema definition
Thanks
The text was updated successfully, but these errors were encountered:
I fork this project because i need some new features
'200':
description: Good
content:
application/json:
schema:
$ref: '#/components/schemas/User'
examples:
Err0r1:
description: "Error1"
value:
detail: Error1
Err0r2:
description: "Error2"
value:
detail: "Error2"
I change your implementation of method getResponseSchema because the resultSchema.examples is not an array and the default generator not work
I do
if (!Array.isArray(examples)) {
let arrayOfExample = []
for (const key in examples) {
arrayOfExample.push(examples[key].value)
}
resultSchema.examples = arrayOfExample;
Maybe you can add this type of feature ? maybe you can also random the reponse 200/500 or 400?
I add too an new option to generate random value for items only described into the schema definition
Thanks
The text was updated successfully, but these errors were encountered: