Apply explicit type for additionalProperties #333
-
Hi, I'm looking for an option that would let me add an explicit Basically turn {
"additionalProperties": {
"type": "string"
}
} into {
"type": "object",
"additionalProperties": {
"type": "string"
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hi @aalmiray, What Schema Draft version are you using? "headers" : {
"allOf" : [ {
"$ref" : "#/definitions/StringProperties"
}, {
"additionalProperties" : {
"type" : "string"
}
} ]
} However, when you use a newer Schema Draft version (e.g., Draft 2019-09), that supports "headers" : {
"$ref" : "#/definitions/StringProperties"
"additionalProperties" : {
"type" : "string"
}
} |
Beta Was this translation helpful? Give feedback.
Release v4.30.0 has been published. 🚀
The new
Option.STRICT_TYPE_INFO
can be used to achieve the desired output here.