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

Function normalizeVantaCustomFields

apps/sim/tools/vanta/utils.ts:341–346  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

339}
340
341function normalizeVantaCustomFields(value: unknown): VantaCustomField[] {
342 return getRecordArray(value).map((field) => ({
343 label: getString(field.label),
344 value: Array.isArray(field.value) ? getStringArray(field.value) : getString(field.value),
345 }))
346}
347
348export function normalizeVantaFramework(resource: JsonRecord): VantaFramework {
349 return {

Callers 3

normalizeVantaControlFunction · 0.85
normalizeVantaVendorFunction · 0.85

Calls 3

getRecordArrayFunction · 0.70
getStringFunction · 0.70
getStringArrayFunction · 0.70

Tested by

no test coverage detected