MCPcopy Create free account
hub / github.com/EvilFreelancer/openapi-to-cli / isYamlSource

Method isYamlSource

src/openapi-loader.ts:211–214  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

209 }
210
211 private isYamlSource(source: string): boolean {
212 const lower = source.toLowerCase().split("?")[0];
213 return lower.endsWith(".yaml") || lower.endsWith(".yml");
214 }
215
216 private looksLikeJson(content: string): boolean {
217 const trimmed = content.trimStart();

Callers 1

parseSpecMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected