fix(samples): fix handling of additionalProperties in JSON Schema 2020-12 (#9023)
This change is specific to JSON Schema 2020-12 and OpenAPI 3.1.0. Refs #9022
This commit is contained in:
@@ -420,7 +420,7 @@ export const sampleFromSchemaGeneric = (
|
||||
return res
|
||||
}
|
||||
|
||||
if (isBooleanJSONSchema(additionalProperties)) {
|
||||
if (isBooleanJSONSchema(additionalProperties) && additionalProperties) {
|
||||
if (respectXML) {
|
||||
res[displayName].push({ additionalProp: "Anything can be here" })
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user