MCPcopy Index your code
hub / github.com/simstudioai/sim / validateAssetsWorkspaceId

Function validateAssetsWorkspaceId

apps/sim/lib/core/security/input-validation.ts:638–649  ·  view source on GitHub ↗
(
  value: string | null | undefined,
  paramName = 'workspaceId'
)

Source from the content-addressed store, hash-verified

636 * @returns ValidationResult
637 */
638export function validateAssetsWorkspaceId(
639 value: string | null | undefined,
640 paramName = 'workspaceId'
641): ValidationResult {
642 return validatePathSegment(value, {
643 paramName,
644 allowHyphens: true,
645 allowUnderscores: false,
646 allowDots: false,
647 maxLength: 100,
648 })
649}
650
651/**
652 * Validates Jira issue keys (format: PROJECT-123 or PROJECT-KEY-123)

Callers 9

route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 1

validatePathSegmentFunction · 0.85

Tested by

no test coverage detected