Skip to content

Commit

Permalink
chore: fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
darcyYe committed Jan 22, 2025
1 parent 3616d85 commit 5c81864
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"tags": [
{
"name": "SAML Applications",
"name": "SAML applications",
"description": "SAML (Security Assertion Markup Language) applications represent applications that use SAML protocol for single sign-on (SSO). These endpoints allow you to manage SAML applications, including their configurations and signing certificates."
},
{
"name": "Dev feature"
},
{
"name": "Cloud only"
}
],
"paths": {
Expand Down Expand Up @@ -93,6 +90,9 @@
},
"400": {
"description": "Invalid request or OIDC error."
},
"404": {
"description": "The SAML application was not found."
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions packages/core/src/routes/swagger/utils/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ const validateSupplementPaths = (
if (
isKeyInObject(operation, 'tags') &&
Array.isArray(operation.tags) &&
!operation.tags.every(
(tag) => typeof tag === 'string' && [cloudOnlyTag, devFeatureTag].includes(tag)
)
!operation.tags.every((tag) => typeof tag === 'string' && reservedTags.has(tag))
) {
throw new TypeError(
`Cannot use \`tags\` in supplement document on path \`${path}\` and operation \`${method}\` except for tag \`${cloudOnlyTag}\` and \`${devFeatureTag}\`. Define tags in the document root instead.`
Expand Down

0 comments on commit 5c81864

Please sign in to comment.