docs: fix to OAS generator following Zod update + generate API reference (#13030)

This commit is contained in:
Shahed Nasser
2025-07-24 14:36:28 +03:00
committed by GitHub
parent 3921c86e19
commit 9bb4c0306b
126 changed files with 4855 additions and 2689 deletions

View File

@@ -364,7 +364,7 @@ class OasSchemaHelper {
.replace("DTO", "")
.replace(this.schemaRefPrefix, "")
.replace(
/(?<!(AdminProduct|CreateProduct|StoreShippingOption|AdminShippingOption|CreateShippingOption|BaseProduct|StoreProduct))Type$/,
/(?<!(AdminProduct|CreateProduct|UpdateProduct|StoreShippingOption|AdminShippingOption|CreateShippingOption|BaseProduct|StoreProduct))Type$/,
""
)
}

View File

@@ -11,5 +11,5 @@ export default function isZodObject(itemType: ts.Type): boolean {
return false
}
return (parent.typeName as ts.Identifier).getText().includes("ZodObject")
return (parent.typeName as ts.Identifier).getText().includes("identity")
}