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 authored and GitHub committed 2024-09-19 14:25:16 +00:00
1 parent 89928dfdf3
commit 4923a6e823
20 files changed
+287 -149

No files matched your search

@@ -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)
}