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

Function primitiveToString

packages/plugins/openapi/src/sdk/invoke.ts:48–49  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

46};
47
48const primitiveToString = (value: unknown): string =>
49 typeof value === "object" && value !== null ? JSON.stringify(value) : String(value);
50
51// RFC 3986 §2.2 reserved chars. `allowReserved: true` leaves these
52// unencoded; default OAS behavior encodes everything non-unreserved.

Callers 2

queryParamEntriesFunction · 0.85
invoke.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected