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

Function readHintMimeType

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

Source from the content-addressed store, hash-verified

487 Option.getOrElse(option, () => fallback);
488
489const readHintMimeType = (hint: OperationFileHint, fallback: string): string =>
490 Option.getOrElse(hint.mimeType, () => fallback);
491
492const readHintEncoding = (hint: OperationFileHint): "base64" | "base64url" =>
493 Option.getOrElse(hint.encoding, () => "base64");

Callers 2

fileFromByteFieldFunction · 0.85
fileFromBinaryBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected