Skip to content

Commit d920e68

Browse files
author
Aldo Torres
committed
solving test issues
1 parent 4ef5388 commit d920e68

12 files changed

+12
-12
lines changed

src/test/resources/checks/v2/format/OAR007/without-anything.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"paths": {
88
"/pets": {
9-
"get": { # Noncompliant {{OAR007: Section produces is mandatory}}
9+
"post": { # Noncompliant {{OAR007: Section produces is mandatory}}
1010
"responses": {
1111
"200": {
1212
"description": "Ok"

src/test/resources/checks/v2/format/OAR007/without-anything.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
title: Swagger Petstore
55
paths:
66
/pets:
7-
get: # Noncompliant {{OAR007: Section produces is mandatory}}
7+
post: # Noncompliant {{OAR007: Section produces is mandatory}}
88
responses:
99
200:
1010
description: Ok

src/test/resources/checks/v2/format/OAR010/with-default-and-specific.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"paths": {
1111
"/pets": {
12-
"get": {
12+
"post": {
1313
"produces": [ # Noncompliant {{OAR010: Should indicate the default response media type}}
1414
"application/xml"
1515
],

src/test/resources/checks/v2/format/OAR010/with-default-and-specific.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ produces:
66
- application/json
77
paths:
88
/pets:
9-
get:
9+
post:
1010
produces: # Noncompliant {{OAR010: Should indicate the default response media type}}
1111
- application/xml
1212
responses:

src/test/resources/checks/v2/format/OAR010/with-specific.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
},
2020
"/owners": {
21-
"get": {
21+
"post": {
2222
"produces": [ # Noncompliant {{OAR010: Should indicate the default response media type}}
2323
"application/xml"
2424
],

src/test/resources/checks/v2/format/OAR010/with-specific.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ paths:
1212
200:
1313
description: Ok
1414
/owners:
15-
get:
15+
post:
1616
produces: # Noncompliant {{OAR010: Should indicate the default response media type}}
1717
- application/xml
1818
responses:

src/test/resources/checks/v2/format/OAR010/with-wrong-default-and-specific.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"paths": {
1111
"/pets": {
12-
"get": {
12+
"post": {
1313
"produces": [ # Noncompliant {{OAR010: Should indicate the default response media type}}
1414
"application/xml"
1515
],

src/test/resources/checks/v2/format/OAR010/with-wrong-default-and-specific.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ produces:
66
- application/xml
77
paths:
88
/pets:
9-
get:
9+
post:
1010
produces: # Noncompliant {{OAR010: Should indicate the default response media type}}
1111
- application/xml
1212
responses:

src/test/resources/checks/v2/format/OAR010/with-wrong-default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"paths": {
1111
"/pets": {
12-
"get": { # Noncompliant {{OAR010: Should indicate the default response media type}}
12+
"post": { # Noncompliant {{OAR010: Should indicate the default response media type}}
1313
"responses": {
1414
"200": {
1515
"description": "Ok"

src/test/resources/checks/v2/format/OAR010/with-wrong-default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ produces:
66
- application/xml
77
paths:
88
/pets:
9-
get: # Noncompliant {{OAR010: Should indicate the default response media type}}
9+
post: # Noncompliant {{OAR010: Should indicate the default response media type}}
1010
responses:
1111
200:
1212
description: Ok

0 commit comments

Comments
 (0)