Skip to content

Commit 6e1c10e

Browse files
authored
refactor(specmap): move specmap implementation to resolve module (#3486)
Refs #3386
1 parent 2a5007e commit 6e1c10e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+20
-20
lines changed

config/jest/jest.unit.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
'<rootDir>/node_modules/',
1010
'<rootDir>/test/data/',
1111
'<rootDir>/test/jest.setup.js',
12-
'<rootDir>/test/specmap/data/',
12+
'<rootDir>/test/resolver/specmap/data/',
1313
'<rootDir>/test/build-artifacts/',
1414
'/__fixtures__/',
1515
'/__utils__/',

src/execute/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { url } from '@swagger-api/apidom-reference/configuration/empty';
55
import { DEFAULT_BASE_URL, DEFAULT_OPENAPI_3_SERVER } from '../constants.js';
66
import stockHttp from '../http/index.js';
77
import { serializeRequest } from '../http/serializers/request/index.js';
8-
import createError from '../specmap/lib/create-error.js';
8+
import createError from '../resolver/specmap/lib/create-error.js';
99
import SWAGGER2_PARAMETER_BUILDERS from './swagger2/parameter-builders.js';
1010
import * as OAS3_PARAMETER_BUILDERS from './oas3/parameter-builders.js';
1111
import oas3BuildRequest from './oas3/build-request.js';

src/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/errors/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import createError from '../../../../../../../specmap/lib/create-error.js';
1+
import createError from '../../../../../../specmap/lib/create-error.js';
22

33
// eslint-disable-next-line import/prefer-default-export
44
export const SchemaRefError = createError('SchemaRefError', function cb(message, extra, oriError) {

src/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/dereference.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import {
4848

4949
import toPath from '../utils/to-path.js';
5050
import getRootCause from '../utils/get-root-cause.js';
51-
import specMapMod from '../../../../../../../specmap/lib/refs.js';
51+
import specMapMod from '../../../../../../specmap/lib/refs.js';
5252
import { SchemaRefError } from '../errors/index.js';
5353

5454
const { wrapError } = specMapMod;

src/specmap/helpers.js renamed to src/resolver/specmap/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import traverse from 'traverse';
22
import { url } from '@swagger-api/apidom-reference/configuration/empty';
33

4-
import { DEFAULT_BASE_URL } from '../constants.js';
4+
import { DEFAULT_BASE_URL } from '../../constants.js';
55

66
// This will match if the direct parent's key exactly matches an item.
77
const freelyNamedKeyParents = ['properties'];
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)