MCPcopy Create free account
hub / github.com/Effect-TS/effect / sanitizeOpenApiComponentsSchemasKey

Function sanitizeOpenApiComponentsSchemasKey

packages/effect/src/JsonSchema.ts:846–848  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

844 * @internal
845 */
846export function sanitizeOpenApiComponentsSchemasKey(s: string): string {
847 return s.length === 0 ? "_" : s.replace(/[^a-zA-Z0-9._-]/gu, "_")
848}
849
850function transformSchema(
851 node: unknown,

Callers 1

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected