chore(oas): [12/n] improve oas schemas (#9200)

- improve OAS schemas [12/n]
- Support ignoring properties in type if it has the `@ignore` jsdoc tag.
This commit is contained in:
Shahed Nasser
2024-09-19 14:25:16 +00:00
committed by GitHub
parent 89928dfdf3
commit 4923a6e823
20 changed files with 287 additions and 149 deletions
@@ -1543,6 +1543,15 @@ class OasKindGenerator extends FunctionKindGenerator {
) {
return
}
const shouldIgnore = property
.getJsDocTags()
.some((tag) => tag.name === "ignore")
if (shouldIgnore) {
return
}
if (this.isRequired(property)) {
requiredProperties.push(property.name)
}