MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / encodeFormValue

Function encodeFormValue

packages/plugins/openapi/src/sdk/invoke.ts:577–580  ·  view source on GitHub ↗
(v: unknown, allowReserved: boolean)

Source from the content-addressed store, hash-verified

575};
576
577const encodeFormValue = (v: unknown, allowReserved: boolean): string => {
578 const raw = typeof v === "object" && v !== null ? JSON.stringify(v) : String(v);
579 return encodeReservedAware(raw, allowReserved);
580};
581
582/**
583 * Serialize a record to application/x-www-form-urlencoded with OAS3 style

Callers 1

serializeFormUrlEncodedFunction · 0.85

Calls 1

encodeReservedAwareFunction · 0.85

Tested by

no test coverage detected