Skip to content

Commit 577e6c6

Browse files
prettier fix
1 parent d1e9526 commit 577e6c6

File tree

42 files changed

+47
-189
lines changed

Some content is hidden

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

42 files changed

+47
-189
lines changed

tools/spectral/ipa/rulesets/functions/IPA005ExceptionExtensionFormat.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
evaluateAndCollectAdoptionStatusWithoutExceptions,
3-
handleInternalError,
4-
} from './utils/collectionUtils.js';
1+
import { evaluateAndCollectAdoptionStatusWithoutExceptions, handleInternalError } from './utils/collectionUtils.js';
52

63
const RULE_NAME = 'xgen-IPA-005-exception-extension-format';
74
const ERROR_MESSAGE = 'IPA exceptions must have a valid rule name and a reason.';

tools/spectral/ipa/rulesets/functions/IPA102CollectionIdentifierCamelCase.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
evaluateAndCollectAdoptionStatus,
3-
handleInternalError,
4-
} from './utils/collectionUtils.js';
1+
import { evaluateAndCollectAdoptionStatus, handleInternalError } from './utils/collectionUtils.js';
52
import { isPathParam } from './utils/componentUtils.js';
63
import { casing } from '@stoplight/spectral-functions';
74
import { findExceptionInPathHierarchy } from './utils/exceptions.js';

tools/spectral/ipa/rulesets/functions/IPA102EachPathAlternatesBetweenResourceNameAndPathParam.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { isPathParam } from './utils/componentUtils.js';
2-
import {
3-
evaluateAndCollectAdoptionStatus,
4-
handleInternalError,
5-
} from './utils/collectionUtils.js';
2+
import { evaluateAndCollectAdoptionStatus, handleInternalError } from './utils/collectionUtils.js';
63
import { AUTH_PREFIX, UNAUTH_PREFIX } from './utils/resourceEvaluation.js';
74
import { findExceptionInPathHierarchy } from './utils/exceptions.js';
85

tools/spectral/ipa/rulesets/functions/IPA104EachResourceHasGetMethod.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import {
55
isSingleResourceIdentifier,
66
isSingletonResource,
77
} from './utils/resourceEvaluation.js';
8-
import {
9-
evaluateAndCollectAdoptionStatus,
10-
handleInternalError,
11-
} from './utils/collectionUtils.js';
8+
import { evaluateAndCollectAdoptionStatus, handleInternalError } from './utils/collectionUtils.js';
129

1310
const RULE_NAME = 'xgen-IPA-104-resource-has-GET';
1411
const ERROR_MESSAGE = 'APIs must provide a get method for resources.';

tools/spectral/ipa/rulesets/functions/IPA104GetMethodReturnsSingleResource.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import {
44
isSingleResourceIdentifier,
55
isSingletonResource,
66
} from './utils/resourceEvaluation.js';
7-
import {
8-
evaluateAndCollectAdoptionStatus,
9-
handleInternalError,
10-
} from './utils/collectionUtils.js';
7+
import { evaluateAndCollectAdoptionStatus, handleInternalError } from './utils/collectionUtils.js';
118
import { schemaIsArray, schemaIsPaginated } from './utils/schemaUtils.js';
129
import { resolveObject } from './utils/componentUtils.js';
1310

tools/spectral/ipa/rulesets/functions/IPA105ListMethodResponseIsGetMethodResponse.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,8 @@ import {
44
isSingletonResource,
55
} from './utils/resourceEvaluation.js';
66
import { resolveObject } from './utils/componentUtils.js';
7-
import {
8-
evaluateAndCollectAdoptionStatus,
9-
handleInternalError,
10-
} from './utils/collectionUtils.js';
11-
import {
12-
getResponseOfGetMethodByMediaType,
13-
getSchemaNameFromRef,
14-
getSchemaRef,
15-
} from './utils/methodUtils.js';
7+
import { evaluateAndCollectAdoptionStatus, handleInternalError } from './utils/collectionUtils.js';
8+
import { getResponseOfGetMethodByMediaType, getSchemaNameFromRef, getSchemaRef } from './utils/methodUtils.js';
169
import { schemaIsPaginated } from './utils/schemaUtils.js';
1710

1811
const RULE_NAME = 'xgen-IPA-105-list-method-response-is-get-method-response';

tools/spectral/ipa/rulesets/functions/IPA106CreateMethodResponseIsGetMethodResponse.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@ import {
44
isSingletonResource,
55
} from './utils/resourceEvaluation.js';
66
import { resolveObject } from './utils/componentUtils.js';
7-
import {
8-
evaluateAndCollectAdoptionStatus,
9-
handleInternalError,
10-
} from './utils/collectionUtils.js';
11-
import {
12-
getResponseOfGetMethodByMediaType,
13-
getSchemaRef,
14-
} from './utils/methodUtils.js';
7+
import { evaluateAndCollectAdoptionStatus, handleInternalError } from './utils/collectionUtils.js';
8+
import { getResponseOfGetMethodByMediaType, getSchemaRef } from './utils/methodUtils.js';
159

1610
const RULE_NAME = 'xgen-IPA-106-create-method-response-is-get-method-response';
1711
const ERROR_MESSAGE =

tools/spectral/ipa/rulesets/functions/IPA106CreateMethodShouldNotHaveQueryParameters.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
evaluateAndCollectAdoptionStatus,
3-
handleInternalError,
4-
} from './utils/collectionUtils.js';
1+
import { evaluateAndCollectAdoptionStatus, handleInternalError } from './utils/collectionUtils.js';
52
import {
63
getResourcePathItems,
74
isCustomMethodIdentifier,

tools/spectral/ipa/rulesets/functions/IPA107UpdateMethodMustNotHaveQueryParams.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
evaluateAndCollectAdoptionStatus,
3-
handleInternalError,
4-
} from './utils/collectionUtils.js';
1+
import { evaluateAndCollectAdoptionStatus, handleInternalError } from './utils/collectionUtils.js';
52
import {
63
getResourcePathItems,
74
isResourceCollectionIdentifier,

tools/spectral/ipa/rulesets/functions/IPA107UpdateMethodResponseIsGetMethodResponse.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,8 @@ import {
55
isSingletonResource,
66
} from './utils/resourceEvaluation.js';
77
import { resolveObject } from './utils/componentUtils.js';
8-
import {
9-
evaluateAndCollectAdoptionStatus,
10-
handleInternalError,
11-
} from './utils/collectionUtils.js';
12-
import {
13-
getGETMethodResponseSchemaFromPathItem,
14-
getSchemaRef,
15-
} from './utils/methodUtils.js';
8+
import { evaluateAndCollectAdoptionStatus, handleInternalError } from './utils/collectionUtils.js';
9+
import { getGETMethodResponseSchemaFromPathItem, getSchemaRef } from './utils/methodUtils.js';
1610

1711
const RULE_NAME = 'xgen-IPA-107-update-method-response-is-get-method-response';
1812
const ERROR_MESSAGE =

0 commit comments

Comments
 (0)