fix(sample-gen): parameter array missing items fallback (#7376)
* fixes #7375
This commit is contained in:
@@ -500,6 +500,10 @@ export const sampleFromSchemaGeneric = (schema, config={}, exampleOverride = und
|
||||
}
|
||||
|
||||
if(type === "array") {
|
||||
if (!items) {
|
||||
return
|
||||
}
|
||||
|
||||
let sampleArray
|
||||
if(respectXML) {
|
||||
items.xml = items.xml || schema?.xml || {}
|
||||
|
||||
Reference in New Issue
Block a user