File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,15 @@ extends:
2121 - ./rulesets/IPA-126.yaml
2222
2323overrides :
24+ - files :
25+ - ' **#/paths/~1api~1atlas~1v2~1unauth~1controlPlaneIPAddresses'
26+ rules :
27+ xgen-IPA-110-collections-response-define-links-array : ' off'
28+ xgen-IPA-110-collections-response-define-results-array : ' off'
29+ xgen-IPA-110-collections-use-paginated-prefix : ' off'
30+ xgen-IPA-110-collections-request-has-itemsPerPage-query-param : ' off'
31+ xgen-IPA-110-collections-request-has-pageNum-query-param : ' off'
32+ xgen-IPA-104-resource-has-GET : ' off'
2433 - files :
2534 - ' **#/components/schemas/DataLakeDatabaseDataSourceSettings'
2635 - ' **#/components/schemas/DataLakeAtlasStoreReadPreference'
Original file line number Diff line number Diff line change @@ -190,12 +190,12 @@ function resourceBelongsToSingleParent(resourcePath) {
190190}
191191
192192// TODO move prefixes to be rule arguments
193- function removePrefix ( path ) {
194- if ( path . startsWith ( AUTH_PREFIX ) ) {
195- return path . slice ( AUTH_PREFIX . length ) ;
196- }
193+ export function removePrefix ( path ) {
197194 if ( path . startsWith ( UNAUTH_PREFIX ) ) {
198195 return path . slice ( UNAUTH_PREFIX . length ) ;
199196 }
197+ if ( path . startsWith ( AUTH_PREFIX ) ) {
198+ return path . slice ( AUTH_PREFIX . length ) ;
199+ }
200200 return path ;
201201}
You can’t perform that action at this time.
0 commit comments