(content: string | object, source: string)
| 77 | } |
| 78 | |
| 79 | private parseSpec(content: string | object, source: string): unknown { |
| 80 | if (typeof content !== "string") { |
| 81 | return content; |
| 82 | } |
| 83 | if (this.isYamlSource(source) || !this.looksLikeJson(content)) { |
| 84 | return yaml.load(content); |
| 85 | } |
| 86 | return JSON.parse(content); |
| 87 | } |
| 88 | |
| 89 | private async resolveRefs( |
| 90 | value: unknown, |
no test coverage detected