|
1 | 1 | import path from 'node:path'; |
2 | 2 |
|
3 | | -import { getSpecsPath } from '../packages/openapi-ts-tests/utils'; |
| 3 | +const specsPath = path.join(__dirname, '..', 'specs'); |
4 | 4 |
|
5 | 5 | export const inputs = { |
6 | | - circular: path.resolve(getSpecsPath(), '3.0.x', 'circular.yaml'), |
7 | | - full: path.resolve(getSpecsPath(), '3.1.x', 'full.yaml'), |
| 6 | + circular: path.resolve(specsPath, '3.0.x', 'circular.yaml'), |
| 7 | + full: path.resolve(specsPath, '3.1.x', 'full.yaml'), |
8 | 8 | local: 'http://localhost:8000/openapi.json', |
9 | | - opencode: path.resolve(getSpecsPath(), '3.1.x', 'opencode.yaml'), |
| 9 | + opencode: path.resolve(specsPath, '3.1.x', 'opencode.yaml'), |
10 | 10 | petstore: |
11 | 11 | 'https://raw.githubusercontent.com/swagger-api/swagger-petstore/master/src/main/resources/openapi.yaml', |
12 | 12 | redfish: |
13 | 13 | 'https://raw.githubusercontent.com/DMTF/Redfish-Publications/refs/heads/main/openapi/openapi.yaml', |
14 | 14 | scalar: 'scalar:@scalar/access-service', |
15 | | - transformers: path.resolve(getSpecsPath(), '3.1.x', 'transformers.json'), |
16 | | - validators: path.resolve(getSpecsPath(), '3.1.x', 'validators.yaml'), |
| 15 | + transformers: path.resolve(specsPath, '3.1.x', 'transformers.json'), |
| 16 | + validators: path.resolve(specsPath, '3.1.x', 'validators.yaml'), |
17 | 17 | } as const; |
18 | 18 |
|
19 | 19 | export type InputKey = keyof typeof inputs; |
|
0 commit comments