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

Function encodeFormValue

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

Source from the content-addressed store, hash-verified

616};
617
618const encodeFormValue = (v: unknown, allowReserved: boolean): string => {
619 const raw = typeof v === "object" && v !== null ? JSON.stringify(v) : String(v);
620 return encodeReservedAware(raw, allowReserved);
621};
622
623/**
624 * 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