Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ input-validation.test.ts
File
input-validation.test.ts
apps/sim/lib/core/security/input-validation.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ envFlagsMock } from
'@sim/testing'
2
import
{ afterEach, beforeEach, describe, expect, it, vi } from
'vitest'
3
import
{
4
validateAirtableId,
Callers
nothing calls this directly
Calls
15
validatePathSegment
Function · 0.90
validateAlphanumericId
Function · 0.90
validateNumericId
Function · 0.90
validateEnum
Function · 0.90
validateHostname
Function · 0.90
validateFileExtension
Function · 0.90
sanitizeForLogging
Function · 0.90
isPrivateOrReservedIP
Function · 0.90
validateUrlWithDNS
Function · 0.90
validateDatabaseHost
Function · 0.90
validateInteger
Function · 0.90
validateMicrosoftGraphId
Function · 0.90
Tested by
no test coverage detected