File tree 3 files changed +71
-0
lines changed
java/org/openapitools/openapidiff/core
3 files changed +71
-0
lines changed Original file line number Diff line number Diff line change 1
1
package org .openapitools .openapidiff .core ;
2
2
3
+ import static org .openapitools .openapidiff .core .TestUtils .assertOpenApiBackwardIncompatible ;
3
4
import static org .openapitools .openapidiff .core .TestUtils .assertOpenApiChangedEndpoints ;
4
5
5
6
import org .junit .jupiter .api .Test ;
@@ -12,4 +13,9 @@ public class RequestDiffTest {
12
13
public void testDiffDifferent () {
13
14
assertOpenApiChangedEndpoints (OPENAPI_DOC1 , OPENAPI_DOC2 );
14
15
}
16
+
17
+ @ Test
18
+ public void issue412 () {
19
+ assertOpenApiBackwardIncompatible ("issue-412_1.yaml" , "issue-412_2.yaml" );
20
+ }
15
21
}
Original file line number Diff line number Diff line change
1
+ openapi : " 3.0.1"
2
+ info :
3
+ title : " Public Api"
4
+ description : " "
5
+ version : " 2022-08-23T16:17:54Z"
6
+ servers :
7
+ - url : " https://someurl"
8
+ variables :
9
+ basePath :
10
+ default : " /v1"
11
+ paths :
12
+ /auth :
13
+ post :
14
+ requestBody :
15
+ content :
16
+ application/json :
17
+ schema :
18
+ $ref : " #/components/schemas/AuthRequest"
19
+ required : true
20
+ responses :
21
+ 200 :
22
+ description : OK
23
+ components :
24
+ schemas :
25
+ AuthRequest :
26
+ required :
27
+ - " Username"
28
+ - " Password"
29
+ type : " object"
30
+ properties :
31
+ Username :
32
+ type : " string"
33
+ Password :
34
+ type : " string"
Original file line number Diff line number Diff line change
1
+ openapi : " 3.0.1"
2
+ info :
3
+ title : " Public Api"
4
+ description : " "
5
+ version : " 2022-08-23T16:17:54Z"
6
+ servers :
7
+ - url : " https://someurl"
8
+ variables :
9
+ basePath :
10
+ default : " /v1"
11
+ paths :
12
+ /auth :
13
+ post :
14
+ requestBody :
15
+ content :
16
+ application/json :
17
+ schema :
18
+ $ref : " #/components/schemas/AuthRequest"
19
+ required : true
20
+ responses :
21
+ 200 :
22
+ description : OK
23
+ components :
24
+ schemas :
25
+ AuthRequest :
26
+ required :
27
+ - " Username"
28
+ type : " object"
29
+ properties :
30
+ Username :
31
+ type : " string"
You can’t perform that action at this time.
0 commit comments