Skip to content

Commit

Permalink
Merge branch 'fix/sales-channel-search' of https://github.com/medusaj…
Browse files Browse the repository at this point in the history
…s/medusa into fix/sales-channel-search
  • Loading branch information
kasperkristensen committed Aug 29, 2024
2 parents bf2eb34 + 53a4229 commit 5323fc3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion www/utils/packages/docs-generator/src/commands/clean-oas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ import parseOas from "../utils/parse-oas.js"

const OAS_PREFIX_REGEX = /@oas \[(?<method>(get|post|delete))\] (?<path>.+)/

const ignoreSchemas = [
"AuthResponse",
"AuthAdminSessionResponse",
"AuthStoreSessionResponse",
]

export default async function () {
const oasOutputBasePath = getOasOutputBasePath()
const oasOperationsPath = path.join(oasOutputBasePath, "operations")
Expand Down Expand Up @@ -274,7 +280,10 @@ export default async function () {

// clean up schemas
allSchemas.forEach((schemaName) => {
if (referencedSchemas.has(schemaName)) {
if (
referencedSchemas.has(schemaName) ||
ignoreSchemas.includes(schemaName)
) {
return
}

Expand Down

0 comments on commit 5323fc3

Please sign in to comment.