@@ -42,18 +42,47 @@ public override void Compare(
4242 return ;
4343 }
4444
45- comparisonContext . GetComparer < OpenApiSchema > ( ) . Compare (
46- sourceParameter ? . Schema ,
47- targetParameter ? . Schema ,
48- comparisonContext ) ;
49-
5045 WalkAndCompare (
5146 comparisonContext ,
5247 OpenApiConstants . Content ,
5348 ( ) => comparisonContext
5449 . GetComparer < IDictionary < string , OpenApiMediaType > > ( )
5550 . Compare ( sourceParameter . Content , targetParameter . Content , comparisonContext ) ) ;
5651
52+ WalkAndCompare ( comparisonContext , OpenApiConstants . Description ,
53+ ( ) => Compare ( sourceParameter . Description , targetParameter . Description , comparisonContext ) ) ;
54+
55+ WalkAndCompare ( comparisonContext , OpenApiConstants . Required ,
56+ ( ) => Compare ( sourceParameter . Required , targetParameter . Required , comparisonContext ) ) ;
57+
58+ WalkAndCompare ( comparisonContext , OpenApiConstants . Name ,
59+ ( ) => Compare ( sourceParameter . Name , targetParameter . Name , comparisonContext ) ) ;
60+
61+ WalkAndCompare ( comparisonContext , OpenApiConstants . Deprecated ,
62+ ( ) => Compare ( sourceParameter . Deprecated , targetParameter . Deprecated , comparisonContext ) ) ;
63+
64+ WalkAndCompare ( comparisonContext , OpenApiConstants . AllowEmptyValue ,
65+ ( ) => Compare ( sourceParameter . AllowEmptyValue , targetParameter . AllowEmptyValue , comparisonContext ) ) ;
66+
67+ WalkAndCompare ( comparisonContext , OpenApiConstants . Explode ,
68+ ( ) => Compare ( sourceParameter . Explode , targetParameter . Explode , comparisonContext ) ) ;
69+
70+ WalkAndCompare ( comparisonContext , OpenApiConstants . AllowReserved ,
71+ ( ) => Compare ( sourceParameter . AllowReserved , targetParameter . AllowReserved , comparisonContext ) ) ;
72+
73+ WalkAndCompare ( comparisonContext , OpenApiConstants . Style ,
74+ ( ) => Compare < ParameterStyle > ( sourceParameter . Style , targetParameter . Style , comparisonContext ) ) ;
75+
76+ WalkAndCompare ( comparisonContext , OpenApiConstants . In ,
77+ ( ) => Compare < ParameterLocation > ( sourceParameter . In , targetParameter . In , comparisonContext ) ) ;
78+
79+ WalkAndCompare (
80+ comparisonContext ,
81+ OpenApiConstants . Schema ,
82+ ( ) => comparisonContext
83+ . GetComparer < OpenApiSchema > ( )
84+ . Compare ( sourceParameter . Schema , targetParameter . Schema , comparisonContext ) ) ;
85+
5786 // To Do Add compare for reference object
5887 // To Do Compare Examples
5988 // To Do Compare parameter as IOpenApiExtensible
0 commit comments