Skip to content

Commit 12489ed

Browse files
author
Brendan Doyle
committed
missed swagger cleanup
1 parent fd1117e commit 12489ed

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

core/controller/src/main/resources/apiv1swagger.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,6 @@
17351735
"type": "string"
17361736
},
17371737
"value": {
1738-
"$ref": "#/definitions/AnyValue",
17391738
"description": "Any JSON value"
17401739
}
17411740
}
@@ -1750,9 +1749,6 @@
17501749
}
17511750
}
17521751
},
1753-
"AnyValue": {
1754-
"description": "Can be anything: string, number, array, object, etc."
1755-
},
17561752
"PathName": {
17571753
"required": [
17581754
"path",

tests/src/test/scala/common/rest/SwaggerValidator.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ import com.atlassian.oai.validator.report.ValidationReport
2929
import com.atlassian.oai.validator.whitelist.ValidationErrorsWhitelist
3030
import com.atlassian.oai.validator.whitelist.rule.WhitelistRules
3131

32-
import scala.annotation.nowarn
33-
34-
@nowarn("cat=deprecation")
3532
trait SwaggerValidator {
3633
private val specWhitelist = ValidationErrorsWhitelist
3734
.create()
@@ -51,7 +48,7 @@ trait SwaggerValidator {
5148
WhitelistRules.messageContains("Instance value"),
5249
WhitelistRules.messageContains("not found"),
5350
WhitelistRules.pathContains("/actions/"),
54-
WhitelistRules.methodIs(io.swagger.models.HttpMethod.POST)))
51+
WhitelistRules.methodIs(io.swagger.models.HttpMethod.PUT)))
5552
.withRule(
5653
"Ignore tests that check for invalid DELETEs and PUTs on actions",
5754
WhitelistRules.anyOf(

0 commit comments

Comments
 (0)