File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1616
1717import { BREAKING_CHANGE_TYPE , OperationChanges } from '../../types'
1818import { API_KIND } from '../../consts'
19- import { markChangeAsSemiBreaking } from '../../utils/changes'
19+ import { markChangeAsRisky } from '../../utils/changes'
2020
2121export function validateBwcBreakingChanges (
2222 operationChanges : OperationChanges ,
@@ -31,6 +31,6 @@ export function validateBwcBreakingChanges(
3131 if ( diff . type !== BREAKING_CHANGE_TYPE ) {
3232 continue
3333 }
34- markChangeAsSemiBreaking ( diff , operationChanges )
34+ markChangeAsRisky ( diff , operationChanges )
3535 }
3636}
Original file line number Diff line number Diff line change 1717import { Diff } from '@netcracker/qubership-apihub-api-diff'
1818import { BREAKING_CHANGE_TYPE , OperationChanges , RISKY_CHANGE_TYPE } from '../types'
1919
20- export function markChangeAsSemiBreaking ( diff : Diff , operationChange : OperationChanges ) : void {
20+ export function markChangeAsRisky ( diff : Diff , operationChange : OperationChanges ) : void {
2121 diff . type = RISKY_CHANGE_TYPE
2222
2323 const {
Original file line number Diff line number Diff line change @@ -168,10 +168,8 @@ export function convertDtoFieldOperationTypes<
168168 origin,
169169 override,
170170} : OptionDiffReplacer = { origin : SEMI_BREAKING_CHANGE_TYPE , override : risky } ) : OperationType < J > [ ] {
171- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
172- // @ts -ignore
173171 return operationTypes ?. map ( ( type ) => {
174- if ( ! type . changesSummary || ! type . changesSummary ) return type
172+ // if(!type.changesSummary || !type.changesSummary ) return type
175173 return {
176174 ...type ,
177175 changesSummary : replacePropertyInChangesSummary < T , J > ( type . changesSummary , {
You can’t perform that action at this time.
0 commit comments