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

Function encodeFormValue

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

Source from the content-addressed store, hash-verified

582};
583
584const encodeFormValue = (v: unknown, allowReserved: boolean): string => {
585 const raw = typeof v === "object" && v !== null ? JSON.stringify(v) : String(v);
586 return encodeReservedAware(raw, allowReserved);
587};
588
589/**
590 * 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