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

Function primitiveToString

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

Source from the content-addressed store, hash-verified

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

Callers 2

queryParamValuesFunction · 0.85
invoke.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected