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

Function readHintMimeType

packages/plugins/openapi/src/sdk/invoke.ts:535–536  ·  view source on GitHub ↗
(hint: OperationFileHint, fallback: string)

Source from the content-addressed store, hash-verified

533 Option.getOrElse(option, () => fallback);
534
535const readHintMimeType = (hint: OperationFileHint, fallback: string): string =>
536 Option.getOrElse(hint.mimeType, () => fallback);
537
538const readHintEncoding = (hint: OperationFileHint): "base64" | "base64url" =>
539 Option.getOrElse(hint.encoding, () => "base64");

Callers 2

fileFromByteFieldFunction · 0.85
fileFromBinaryBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected