Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tools/spectral/ipa/ipa-spectral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ extends:
- ./rulesets/IPA-126.yaml

overrides:
- files:
- '**#/paths/~1api~1atlas~1v2~1unauth~1controlPlaneIPAddresses'
rules:
xgen-IPA-110-collections-response-define-links-array: 'off'
xgen-IPA-110-collections-response-define-results-array: 'off'
xgen-IPA-110-collections-use-paginated-prefix: 'off'
xgen-IPA-110-collections-request-has-itemsPerPage-query-param: 'off'
xgen-IPA-110-collections-request-has-pageNum-query-param: 'off'
xgen-IPA-104-resource-has-GET: 'off'
- files:
- '**#/components/schemas/DataLakeDatabaseDataSourceSettings'
- '**#/components/schemas/DataLakeAtlasStoreReadPreference'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ function resourceBelongsToSingleParent(resourcePath) {
}

// TODO move prefixes to be rule arguments
function removePrefix(path) {
if (path.startsWith(AUTH_PREFIX)) {
return path.slice(AUTH_PREFIX.length);
}
export function removePrefix(path) {
if (path.startsWith(UNAUTH_PREFIX)) {
return path.slice(UNAUTH_PREFIX.length);
}
if (path.startsWith(AUTH_PREFIX)) {
return path.slice(AUTH_PREFIX.length);
}
return path;
}
Loading