{
  "filters": {
    "revapi": {
      "java": {
        "_comment": "Only classes with javax.ws.rs annotations are included since we want to check only REST API.",
        "filter": {
          "packages": {
            "regex": true,
            "comment": "We don't want to check transitive classes, e.g. from kie-server-api, since we already check them in their own module.",
            "include": [
              "org\\.kie\\.server\\.remote\\.rest\\.common.*"
            ],
            "exclude": [
              "org\\.kie\\.server\\.remote\\.rest\\.common\\.util"
            ]
          },
          "_comment": "Classes are excluded, not included, so new classes in future are discovered by revapi.",
          "classes": {
            "regex": false,
            "exclude": [
              "org.kie.server.remote.rest.common.Header",
              "org.kie.server.remote.rest.common.KieServerApplication",
              "org.kie.server.remote.rest.common.KieServerRestApplicationComponentService"
            ]
          }
        }
      }
    }
  },

  "ignores": {
    "revapi": {
      "_comment": "Changes between 7.14.0.Final and the current branch. These changes are desired and thus ignored.",
      "ignore": [
        {
          "code": "java.annotation.attributeAdded",
          "old": "parameter javax.ws.rs.core.Response org.kie.server.remote.rest.common.resource.KieServerRestImpl::createContainer(javax.ws.rs.core.HttpHeaders, java.lang.String, ===java.lang.String===)",
          "new": "parameter javax.ws.rs.core.Response org.kie.server.remote.rest.common.resource.KieServerRestImpl::createContainer(javax.ws.rs.core.HttpHeaders, java.lang.String, ===java.lang.String===)",
          "annotationType": "io.swagger.annotations.ApiParam",
          "annotation": "@io.swagger.annotations.ApiParam(value = \"KIE Container resource to be deployed as KieContainerResource\", required = true, examples = @io.swagger.annotations.Example({@io.swagger.annotations.ExampleProperty(mediaType = \"application\/json\", value = \"{\n    \"container-id\" : \"baz\",\n    \"release-id\" : {\n        \"group-id\" : \"foo\",\n        \"artifact-id\" : \"bar\",\n        \"version\" : \"1.0\"\n    }\n}\"), @io.swagger.annotations.ExampleProperty(mediaType = \"application\/xml\", value = \"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<kie-container container-id=\"baz\">\n    <release-id>\n        <group-id>foo<\/group-id>\n        <artifact-id>bar<\/artifact-id>\n        <version>1.0<\/version>\n    <\/release-id>\n<\/kie-container>\n\")}))",
          "attribute": "examples",
          "value": "@io.swagger.annotations.Example({@io.swagger.annotations.ExampleProperty(mediaType = \"application\/json\", value = \"{\n    \"container-id\" : \"baz\",\n    \"release-id\" : {\n        \"group-id\" : \"foo\",\n        \"artifact-id\" : \"bar\",\n        \"version\" : \"1.0\"\n    }\n}\"), @io.swagger.annotations.ExampleProperty(mediaType = \"application\/xml\", value = \"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<kie-container container-id=\"baz\">\n    <release-id>\n        <group-id>foo<\/group-id>\n        <artifact-id>bar<\/artifact-id>\n        <version>1.0<\/version>\n    <\/release-id>\n<\/kie-container>\n\")})",
          "package": "org.kie.server.remote.rest.common.resource",
          "classSimpleName": "KieServerRestImpl",
          "methodName": "createContainer",
          "parameterIndex": "2",
          "elementKind": "parameter",
          "justification": "Add Swagger examples for creating container."
        },
        {
          "code": "java.annotation.attributeAdded",
          "old": "parameter javax.ws.rs.core.Response org.kie.server.remote.rest.common.resource.KieServerRestImpl::updateReleaseId(javax.ws.rs.core.HttpHeaders, java.lang.String, ===java.lang.String===)",
          "new": "parameter javax.ws.rs.core.Response org.kie.server.remote.rest.common.resource.KieServerRestImpl::updateReleaseId(javax.ws.rs.core.HttpHeaders, java.lang.String, ===java.lang.String===)",
          "annotationType": "io.swagger.annotations.ApiParam",
          "annotation": "@io.swagger.annotations.ApiParam(value = \"Release Id to be upgraded to as ReleaseId type\", required = true, examples = @io.swagger.annotations.Example({@io.swagger.annotations.ExampleProperty(mediaType = \"application\/json\", value = \"{\n    \"group-id\" : \"foo\",\n    \"artifact-id\" : \"bar\",\n    \"version\" : \"1.0\"\n}\"), @io.swagger.annotations.ExampleProperty(mediaType = \"application\/xml\", value = \"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<release-id>\n    <group-id>foo<\/group-id>\n    <artifact-id>bar<\/artifact-id>\n    <version>1.0<\/version>\n<\/release-id>\n\")}))",
          "attribute": "examples",
          "value": "@io.swagger.annotations.Example({@io.swagger.annotations.ExampleProperty(mediaType = \"application\/json\", value = \"{\n    \"group-id\" : \"foo\",\n    \"artifact-id\" : \"bar\",\n    \"version\" : \"1.0\"\n}\"), @io.swagger.annotations.ExampleProperty(mediaType = \"application\/xml\", value = \"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<release-id>\n    <group-id>foo<\/group-id>\n    <artifact-id>bar<\/artifact-id>\n    <version>1.0<\/version>\n<\/release-id>\n\")})",
          "package": "org.kie.server.remote.rest.common.resource",
          "classSimpleName": "KieServerRestImpl",
          "methodName": "updateReleaseId",
          "parameterIndex": "2",
          "elementKind": "parameter",
          "justification": "Add Swagger examples for updating release ids."
        },
        {
          "code": "java.annotation.attributeAdded",
          "old": "parameter javax.ws.rs.core.Response org.kie.server.remote.rest.common.resource.KieServerRestImpl::updateScanner(javax.ws.rs.core.HttpHeaders, java.lang.String, ===java.lang.String===)",
          "new": "parameter javax.ws.rs.core.Response org.kie.server.remote.rest.common.resource.KieServerRestImpl::updateScanner(javax.ws.rs.core.HttpHeaders, java.lang.String, ===java.lang.String===)",
          "annotationType": "io.swagger.annotations.ApiParam",
          "annotation": "@io.swagger.annotations.ApiParam(value = \"Scanner information given as KieScannerResource type\", required = true, examples = @io.swagger.annotations.Example({@io.swagger.annotations.ExampleProperty(mediaType = \"application\/json\", value = \"{\n    \"status\" : \"STARTED\",\n    \"poll-interval\" : \"10000\"\n}\"), @io.swagger.annotations.ExampleProperty(mediaType = \"application\/xml\", value = \"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<kie-scanner poll-interval=\"10000\" status=\"STARTED\"\/>\n\")}))",
          "attribute": "examples",
          "value": "@io.swagger.annotations.Example({@io.swagger.annotations.ExampleProperty(mediaType = \"application\/json\", value = \"{\n    \"status\" : \"STARTED\",\n    \"poll-interval\" : \"10000\"\n}\"), @io.swagger.annotations.ExampleProperty(mediaType = \"application\/xml\", value = \"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<kie-scanner poll-interval=\"10000\" status=\"STARTED\"\/>\n\")})",
          "package": "org.kie.server.remote.rest.common.resource",
          "classSimpleName": "KieServerRestImpl",
          "methodName": "updateScanner",
          "parameterIndex": "2",
          "elementKind": "parameter",
          "justification": "Add Swagger examples for updating scanner."
        },
        {
           "code": "java.annotation.attributeAdded",
           "old": "parameter javax.ws.rs.core.Response org.kie.server.remote.rest.common.resource.KieServerRestImpl::updateReleaseId(javax.ws.rs.core.HttpHeaders, java.lang.String, ===java.lang.String===)",
           "new": "parameter javax.ws.rs.core.Response org.kie.server.remote.rest.common.resource.KieServerRestImpl::updateReleaseId(javax.ws.rs.core.HttpHeaders, java.lang.String, ===java.lang.String===, boolean)",
           "annotationType": "io.swagger.annotations.ApiParam",
           "annotation": "@io.swagger.annotations.ApiParam(value = \"Release Id to be upgraded to as ReleaseId type\", required = true, examples = @io.swagger.annotations.Example({@io.swagger.annotations.ExampleProperty(mediaType = \"application\/json\", value = \"{\n    \"group-id\" : \"foo\",\n    \"artifact-id\" : \"bar\",\n    \"version\" : \"1.0\"\n}\"), @io.swagger.annotations.ExampleProperty(mediaType = \"application\/xml\", value = \"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<release-id>\n    <group-id>foo<\/group-id>\n    <artifact-id>bar<\/artifact-id>\n    <version>1.0<\/version>\n<\/release-id>\n\")}))",
           "attribute": "examples",
           "value": "@io.swagger.annotations.Example({@io.swagger.annotations.ExampleProperty(mediaType = \"application\/json\", value = \"{\n    \"group-id\" : \"foo\",\n    \"artifact-id\" : \"bar\",\n    \"version\" : \"1.0\"\n}\"), @io.swagger.annotations.ExampleProperty(mediaType = \"application\/xml\", value = \"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<release-id>\n    <group-id>foo<\/group-id>\n    <artifact-id>bar<\/artifact-id>\n    <version>1.0<\/version>\n<\/release-id>\n\")})",
           "package": "org.kie.server.remote.rest.common.resource",
           "classSimpleName": "KieServerRestImpl",
           "methodName": "updateReleaseId",
           "parameterIndex": "2",
           "elementKind": "parameter",
           "justification": "AF-1685: Development Lifecycle Streamline"
        },
        {
           "code": "java.method.numberOfParametersChanged",
           "old": "method javax.ws.rs.core.Response org.kie.server.remote.rest.common.resource.KieServerRestImpl::updateReleaseId(javax.ws.rs.core.HttpHeaders, java.lang.String, java.lang.String)",
           "new": "method javax.ws.rs.core.Response org.kie.server.remote.rest.common.resource.KieServerRestImpl::updateReleaseId(javax.ws.rs.core.HttpHeaders, java.lang.String, java.lang.String, boolean)",
           "package": "org.kie.server.remote.rest.common.resource",
           "classSimpleName": "KieServerRestImpl",
           "methodName": "updateReleaseId",
           "elementKind": "method",
           "justification": "AF-1685: Development Lifecycle Streamline"
         },
		 {
           "code": "java.annotation.attributeValueChanged",          
           "justification": "Improved KIE Server Swagger docs"
         },
         {
           "code": "java.annotation.attributeAdded",          
           "justification": "Improved KIE Server Swagger docs"
         },
         {
           "code": "java.field.constantValueChanged",          
           "justification": "Improved KIE Server Swagger docs"
         }
         
      ]
    }
  }
}
