diff --git a/obp-api/src/main/scala/code/api/ResourceDocs1_4_0/ResourceDocsAPIMethods.scala b/obp-api/src/main/scala/code/api/ResourceDocs1_4_0/ResourceDocsAPIMethods.scala index e5e538d39..e772faa7b 100644 --- a/obp-api/src/main/scala/code/api/ResourceDocs1_4_0/ResourceDocsAPIMethods.scala +++ b/obp-api/src/main/scala/code/api/ResourceDocs1_4_0/ResourceDocsAPIMethods.scala @@ -4,7 +4,7 @@ import code.api.Constant.PARAM_LOCALE import java.util.UUID.randomUUID import code.api.OBPRestHelper -import code.api.ResourceDocs1_4_0.SwaggerDefinitionsJSON.canGetCustomers +import code.api.ResourceDocs1_4_0.SwaggerDefinitionsJSON.canGetCustomersJson import code.api.builder.OBP_APIBuilder import code.api.cache.Caching import code.api.dynamic.endpoint.helper.{DynamicEndpointHelper, DynamicEndpoints} @@ -409,7 +409,7 @@ trait ResourceDocsAPIMethods extends MdcLoggable with APIMethods220 with APIMeth emptyObjectJson, UnknownError :: Nil, List(apiTagDocumentation), - Some(List(canGetCustomers)) + Some(List(canGetCustomersJson)) ) diff --git a/obp-api/src/main/scala/code/api/ResourceDocs1_4_0/SwaggerDefinitionsJSON.scala b/obp-api/src/main/scala/code/api/ResourceDocs1_4_0/SwaggerDefinitionsJSON.scala index c4c3a87dd..1b29e850d 100644 --- a/obp-api/src/main/scala/code/api/ResourceDocs1_4_0/SwaggerDefinitionsJSON.scala +++ b/obp-api/src/main/scala/code/api/ResourceDocs1_4_0/SwaggerDefinitionsJSON.scala @@ -4372,7 +4372,7 @@ object SwaggerDefinitionsJSON { bank_id = bankIdExample.value ) - val canGetCustomers = ApiRole.canGetCustomers + val canGetCustomersJson = ApiRole.canGetCustomers val cardAttributeCommons = CardAttributeCommons( bankId = Some(BankId(bankIdExample.value)), diff --git a/obp-api/src/test/resources/frozen_type_meta_data b/obp-api/src/test/resources/frozen_type_meta_data index 1d577364c..99ced818b 100644 Binary files a/obp-api/src/test/resources/frozen_type_meta_data and b/obp-api/src/test/resources/frozen_type_meta_data differ diff --git a/obp-api/src/test/scala/code/api/ResourceDocs1_4_0/SwaggerFactoryUnitTest.scala b/obp-api/src/test/scala/code/api/ResourceDocs1_4_0/SwaggerFactoryUnitTest.scala index 83e0467b9..4f5a1d399 100644 --- a/obp-api/src/test/scala/code/api/ResourceDocs1_4_0/SwaggerFactoryUnitTest.scala +++ b/obp-api/src/test/scala/code/api/ResourceDocs1_4_0/SwaggerFactoryUnitTest.scala @@ -84,15 +84,12 @@ class SwaggerFactoryUnitTest extends V140ServerSetup with MdcLoggable { val allStrings = listOfExampleRequestBodyDefinition ++ listOfSuccessRequestBodyDefinition ++ listNestedMissingDefinition //All of the following are invalid value in Swagger, if any of them exist, //need check how you create the case class object in SwaggerDefinitionsJSON.json. - allStrings.toString() should not include ("$colon") // This happened when use the primitive types. eg: val b = List("tesobe"), the List can not be find for now. allStrings.toString() should not include ("Nil$") allStrings.toString() should not include ("JArray") allStrings.toString() should not include ("JBool") allStrings.toString() should not include ("JInt") allStrings.toString() should not include ("JNothing") allStrings.toString() should not include ("JNull") - allStrings.toString() should not include ("JObject") - allStrings.toString() should not include ("JString") allStrings.toString() should not include ("None$") allStrings.toString() should not include ("definitions/scala.Some")