File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
config/openapi/parameter/lint Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const inMultipleBody = {
9
9
message : 'Multiple body parameters are not allowed' ,
10
10
severity : DiagnosticSeverity . Error ,
11
11
linterFunction : 'apilintPropertyUniqueSiblingValue' ,
12
- linterParams : [ [ 'parameters' ] , 'in' ] ,
12
+ linterParams : [ 'parameters' , 'in' ] ,
13
13
marker : 'key' ,
14
14
markerTarget : 'in' ,
15
15
target : 'in' ,
Original file line number Diff line number Diff line change @@ -800,10 +800,9 @@ export const standardLinterfunctions: FunctionItem[] = [
800
800
function : ( element , elementOrClasses , key ) => {
801
801
const value = toValue ( element ) ;
802
802
803
- const filterSiblingsOAS2 = ( el : Element ) =>
804
- isString ( el ) &&
805
- ( el . parent . key as { content ?: string } ) ?. content === key &&
806
- el . content === value ;
803
+ const filterSiblingsOAS2 = (
804
+ el : Element & { key : { content ?: string } ; content : { value ?: string } } ,
805
+ ) => isString ( el ) && el . key ?. content === key && toValue ( el . content . value ) === value ;
807
806
808
807
const filterSiblingsOAS3 = ( el : Element ) =>
809
808
isObject ( el ) && el . hasKey ( key ) && toValue ( el . get ( key ) ) === value ;
You can’t perform that action at this time.
0 commit comments