syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject syncope git commit: Upgrading swagger-jaxrs2 - with possible bug https://github.com/ilgrosso/swagger-core/issues/1
Date Wed, 28 Mar 2018 08:04:21 GMT
Repository: syncope
Updated Branches:
  refs/heads/master 4a7a5c4a6 -> 2dda89d21


Upgrading swagger-jaxrs2 - with possible bug https://github.com/ilgrosso/swagger-core/issues/1


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/2dda89d2
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/2dda89d2
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/2dda89d2

Branch: refs/heads/master
Commit: 2dda89d2196c13fc5d8deda735d7ade4e0823d02
Parents: 4a7a5c4
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Wed Mar 28 10:03:45 2018 +0200
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Wed Mar 28 10:03:57 2018 +0200

----------------------------------------------------------------------
 .../syncope/common/lib/policy/PolicyTO.java     |  6 +++---
 .../common/lib/to/AbstractAnnotatedBean.java    |  8 ++++----
 .../common/lib/to/AbstractStartEndBean.java     |  4 ++--
 .../syncope/common/lib/to/AnyObjectTO.java      |  2 +-
 .../org/apache/syncope/common/lib/to/AnyTO.java |  8 ++++----
 .../apache/syncope/common/lib/to/AttrTO.java    |  2 +-
 .../apache/syncope/common/lib/to/GroupTO.java   |  8 ++++----
 .../common/lib/to/NotificationTaskTO.java       | 20 +++++++++----------
 .../syncope/common/lib/to/PrivilegeTO.java      |  2 ++
 .../syncope/common/lib/to/SchedTaskTO.java      |  4 ++--
 .../apache/syncope/common/lib/to/TaskTO.java    |  6 +++---
 .../apache/syncope/common/lib/to/UserTO.java    | 18 ++++++++---------
 .../common/rest/api/service/JAXRSService.java   | 21 ++++++++++++++++++++
 pom.xml                                         |  2 +-
 14 files changed, 67 insertions(+), 44 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PolicyTO.java
----------------------------------------------------------------------
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PolicyTO.java b/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PolicyTO.java
index f8ef978..eb84fcb 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PolicyTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PolicyTO.java
@@ -65,7 +65,7 @@ public abstract class PolicyTO extends AbstractBaseBean implements EntityTO
{
         // do nothing
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     @Override
     public String getKey() {
         return key;
@@ -87,7 +87,7 @@ public abstract class PolicyTO extends AbstractBaseBean implements EntityTO
{
         this.description = description;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     @XmlElementWrapper(name = "usedByResources")
     @XmlElement(name = "resource")
     @JsonProperty("usedByResources")
@@ -95,7 +95,7 @@ public abstract class PolicyTO extends AbstractBaseBean implements EntityTO
{
         return usedByResources;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     @XmlElementWrapper(name = "usedByRealms")
     @XmlElement(name = "group")
     @JsonProperty("usedByRealms")

http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractAnnotatedBean.java
----------------------------------------------------------------------
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractAnnotatedBean.java
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractAnnotatedBean.java
index b9b71ba..92529bc 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractAnnotatedBean.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractAnnotatedBean.java
@@ -65,7 +65,7 @@ public class AbstractAnnotatedBean extends AbstractBaseBean {
      */
     private Date lastChangeDate;
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public String getCreator() {
         return creator;
     }
@@ -74,7 +74,7 @@ public class AbstractAnnotatedBean extends AbstractBaseBean {
         this.creator = creator;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public Date getCreationDate() {
         if (creationDate != null) {
             return new Date(creationDate.getTime());
@@ -90,7 +90,7 @@ public class AbstractAnnotatedBean extends AbstractBaseBean {
         }
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public String getLastModifier() {
         return lastModifier;
     }
@@ -99,7 +99,7 @@ public class AbstractAnnotatedBean extends AbstractBaseBean {
         this.lastModifier = lastModifier;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public Date getLastChangeDate() {
         if (lastChangeDate != null) {
             return new Date(lastChangeDate.getTime());

http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractStartEndBean.java
----------------------------------------------------------------------
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractStartEndBean.java
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractStartEndBean.java
index 9a65fa3..efdec0c 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractStartEndBean.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractStartEndBean.java
@@ -32,7 +32,7 @@ public class AbstractStartEndBean extends AbstractBaseBean {
 
     private Date end;
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public Date getStart() {
         return start == null
                 ? null
@@ -45,7 +45,7 @@ public class AbstractStartEndBean extends AbstractBaseBean {
                 : new Date(start.getTime());
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public Date getEnd() {
         return end == null
                 ? null

http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/common/lib/src/main/java/org/apache/syncope/common/lib/to/AnyObjectTO.java
----------------------------------------------------------------------
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AnyObjectTO.java b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AnyObjectTO.java
index 4ac3fd8..3d903b1 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AnyObjectTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AnyObjectTO.java
@@ -91,7 +91,7 @@ public class AnyObjectTO extends AnyTO implements GroupableRelatableTO {
         return memberships;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     @XmlElementWrapper(name = "dynMemberships")
     @XmlElement(name = "dynMembership")
     @JsonProperty("dynMemberships")

http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/common/lib/src/main/java/org/apache/syncope/common/lib/to/AnyTO.java
----------------------------------------------------------------------
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AnyTO.java b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AnyTO.java
index b29c6e4..928e877 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AnyTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AnyTO.java
@@ -74,7 +74,7 @@ public abstract class AnyTO extends AbstractAnnotatedBean implements EntityTO,
A
         // do nothing
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     @Override
     public String getKey() {
         return key;
@@ -85,7 +85,7 @@ public abstract class AnyTO extends AbstractAnnotatedBean implements EntityTO,
A
         this.key = key;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public String getType() {
         return type;
     }
@@ -102,7 +102,7 @@ public abstract class AnyTO extends AbstractAnnotatedBean implements EntityTO,
A
         this.realm = realm;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     @XmlElementWrapper(name = "dynRealms")
     @XmlElement(name = "dynRealmF")
     @JsonProperty("dynRealms")
@@ -110,7 +110,7 @@ public abstract class AnyTO extends AbstractAnnotatedBean implements EntityTO,
A
         return dynRealms;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public String getStatus() {
         return status;
     }

http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/common/lib/src/main/java/org/apache/syncope/common/lib/to/AttrTO.java
----------------------------------------------------------------------
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AttrTO.java b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AttrTO.java
index 82a47da..f44258c 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AttrTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AttrTO.java
@@ -89,7 +89,7 @@ public class AttrTO extends AbstractBaseBean {
     /**
      * @return schema information for this attribute; may be {@code NULL}
      */
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public SchemaTO getSchemaInfo() {
         return schemaInfo;
     }

http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/common/lib/src/main/java/org/apache/syncope/common/lib/to/GroupTO.java
----------------------------------------------------------------------
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/to/GroupTO.java b/common/lib/src/main/java/org/apache/syncope/common/lib/to/GroupTO.java
index dcc6ae9..95d234d 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/GroupTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/GroupTO.java
@@ -113,7 +113,7 @@ public class GroupTO extends AnyTO {
         this.udynMembershipCond = uDynMembershipCond;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public int getStaticUserMembershipCount() {
         return staticUserMembershipCount;
     }
@@ -122,7 +122,7 @@ public class GroupTO extends AnyTO {
         this.staticUserMembershipCount = staticUserMembershipCount;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public int getDynamicUserMembershipCount() {
         return dynamicUserMembershipCount;
     }
@@ -131,7 +131,7 @@ public class GroupTO extends AnyTO {
         this.dynamicUserMembershipCount = dynamicUserMembershipCount;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public int getStaticAnyObjectMembershipCount() {
         return staticAnyObjectMembershipCount;
     }
@@ -140,7 +140,7 @@ public class GroupTO extends AnyTO {
         this.staticAnyObjectMembershipCount = staticAnyObjectMembershipCount;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public int getDynamicAnyObjectMembershipCount() {
         return dynamicAnyObjectMembershipCount;
     }

http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/common/lib/src/main/java/org/apache/syncope/common/lib/to/NotificationTaskTO.java
----------------------------------------------------------------------
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/to/NotificationTaskTO.java
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/NotificationTaskTO.java
index a0ae3e7..ddab19a 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/NotificationTaskTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/NotificationTaskTO.java
@@ -65,7 +65,7 @@ public class NotificationTaskTO extends TaskTO {
         return getClass().getName();
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public String getNotification() {
         return notification;
     }
@@ -74,7 +74,7 @@ public class NotificationTaskTO extends TaskTO {
         this.notification = notification;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public AnyTypeKind getAnyTypeKind() {
         return anyTypeKind;
     }
@@ -83,7 +83,7 @@ public class NotificationTaskTO extends TaskTO {
         this.anyTypeKind = anyTypeKind;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public String getEntityKey() {
         return entityKey;
     }
@@ -92,7 +92,7 @@ public class NotificationTaskTO extends TaskTO {
         this.entityKey = entityKey;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     @XmlElementWrapper(name = "recipients")
     @XmlElement(name = "recipient")
     @JsonProperty("recipients")
@@ -100,7 +100,7 @@ public class NotificationTaskTO extends TaskTO {
         return recipients;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public String getSender() {
         return sender;
     }
@@ -109,7 +109,7 @@ public class NotificationTaskTO extends TaskTO {
         this.sender = sender;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public String getSubject() {
         return subject;
     }
@@ -118,7 +118,7 @@ public class NotificationTaskTO extends TaskTO {
         this.subject = subject;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public String getTextBody() {
         return textBody;
     }
@@ -127,7 +127,7 @@ public class NotificationTaskTO extends TaskTO {
         this.textBody = textBody;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public String getHtmlBody() {
         return htmlBody;
     }
@@ -136,7 +136,7 @@ public class NotificationTaskTO extends TaskTO {
         this.htmlBody = htmlBody;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public boolean isExecuted() {
         return executed;
     }
@@ -145,7 +145,7 @@ public class NotificationTaskTO extends TaskTO {
         this.executed = executed;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public TraceLevel getTraceLevel() {
         return traceLevel;
     }

http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/common/lib/src/main/java/org/apache/syncope/common/lib/to/PrivilegeTO.java
----------------------------------------------------------------------
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/to/PrivilegeTO.java b/common/lib/src/main/java/org/apache/syncope/common/lib/to/PrivilegeTO.java
index 47cc07a..b4f94ec 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/PrivilegeTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/PrivilegeTO.java
@@ -18,6 +18,7 @@
  */
 package org.apache.syncope.common.lib.to;
 
+import io.swagger.v3.oas.annotations.media.Schema;
 import javax.xml.bind.annotation.XmlRootElement;
 import javax.xml.bind.annotation.XmlType;
 import org.apache.syncope.common.lib.AbstractBaseBean;
@@ -54,6 +55,7 @@ public class PrivilegeTO extends AbstractBaseBean implements EntityTO {
         this.description = description;
     }
 
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public String getApplication() {
         return application;
     }

http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/common/lib/src/main/java/org/apache/syncope/common/lib/to/SchedTaskTO.java
----------------------------------------------------------------------
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/to/SchedTaskTO.java b/common/lib/src/main/java/org/apache/syncope/common/lib/to/SchedTaskTO.java
index 69f5b95..e0a35c6 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/SchedTaskTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/SchedTaskTO.java
@@ -83,7 +83,7 @@ public class SchedTaskTO extends TaskTO {
         this.jobDelegate = jobDelegate;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public Date getLastExec() {
         return lastExec == null ? null : new Date(lastExec.getTime());
     }
@@ -92,7 +92,7 @@ public class SchedTaskTO extends TaskTO {
         this.lastExec = lastExec == null ? null : new Date(lastExec.getTime());
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public Date getNextExec() {
         return nextExec == null ? null : new Date(nextExec.getTime());
     }

http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/common/lib/src/main/java/org/apache/syncope/common/lib/to/TaskTO.java
----------------------------------------------------------------------
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/to/TaskTO.java b/common/lib/src/main/java/org/apache/syncope/common/lib/to/TaskTO.java
index 4b175b3..d3f9820 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/TaskTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/TaskTO.java
@@ -61,7 +61,7 @@ public abstract class TaskTO extends AbstractStartEndBean implements EntityTO
{
         // do nothing
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     @Override
     public String getKey() {
         return key;
@@ -73,7 +73,7 @@ public abstract class TaskTO extends AbstractStartEndBean implements EntityTO
{
         this.key = key;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public String getLatestExecStatus() {
         return latestExecStatus;
     }
@@ -82,7 +82,7 @@ public abstract class TaskTO extends AbstractStartEndBean implements EntityTO
{
         this.latestExecStatus = latestExecStatus;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     @XmlElementWrapper(name = "executions")
     @XmlElement(name = "execution")
     @JsonProperty("executions")

http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/common/lib/src/main/java/org/apache/syncope/common/lib/to/UserTO.java
----------------------------------------------------------------------
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/to/UserTO.java b/common/lib/src/main/java/org/apache/syncope/common/lib/to/UserTO.java
index 66873ee..b47f042 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/UserTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/UserTO.java
@@ -108,7 +108,7 @@ public class UserTO extends AnyTO implements GroupableRelatableTO {
         return roles;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     @XmlElementWrapper(name = "dynRoles")
     @XmlElement(name = "role")
     @JsonProperty("dynRoles")
@@ -123,7 +123,7 @@ public class UserTO extends AnyTO implements GroupableRelatableTO {
         return privileges;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public String getToken() {
         return token;
     }
@@ -132,7 +132,7 @@ public class UserTO extends AnyTO implements GroupableRelatableTO {
         this.token = token;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public Date getTokenExpireTime() {
         if (tokenExpireTime != null) {
             return new Date(tokenExpireTime.getTime());
@@ -158,7 +158,7 @@ public class UserTO extends AnyTO implements GroupableRelatableTO {
         this.username = username;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public Date getChangePwdDate() {
         if (changePwdDate != null) {
             return new Date(changePwdDate.getTime());
@@ -166,12 +166,12 @@ public class UserTO extends AnyTO implements GroupableRelatableTO {
         return null;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public Integer getFailedLogins() {
         return failedLogins;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public Date getLastLoginDate() {
         if (lastLoginDate != null) {
             return new Date(lastLoginDate.getTime());
@@ -215,7 +215,7 @@ public class UserTO extends AnyTO implements GroupableRelatableTO {
         this.securityAnswer = securityAnswer;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public boolean isSuspended() {
         return suspended;
     }
@@ -224,7 +224,7 @@ public class UserTO extends AnyTO implements GroupableRelatableTO {
         this.suspended = suspended;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     public boolean isMustChangePassword() {
         return mustChangePassword;
     }
@@ -263,7 +263,7 @@ public class UserTO extends AnyTO implements GroupableRelatableTO {
         return memberships;
     }
 
-    @Schema(readOnly = true)
+    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
     @XmlElementWrapper(name = "dynMemberships")
     @XmlElement(name = "dynMembership")
     @JsonProperty("dynMemberships")

http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/common/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/JAXRSService.java
----------------------------------------------------------------------
diff --git a/common/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/JAXRSService.java
b/common/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/JAXRSService.java
index f613370..ee7d840 100644
--- a/common/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/JAXRSService.java
+++ b/common/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/JAXRSService.java
@@ -18,6 +18,27 @@
  */
 package org.apache.syncope.common.rest.api.service;
 
+import io.swagger.v3.oas.annotations.headers.Header;
+import io.swagger.v3.oas.annotations.media.Content;
+import io.swagger.v3.oas.annotations.media.Schema;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
+import io.swagger.v3.oas.annotations.responses.ApiResponses;
+import org.apache.syncope.common.lib.to.ErrorTO;
+import org.apache.syncope.common.rest.api.RESTHeaders;
+
+@ApiResponses(
+        @ApiResponse(responseCode = "400",
+                description = "An error occurred; HTTP status code can vary depending on
the actual error: "
+                + "400, 403, 404, 409, 412",
+                content =
+                @Content(schema =
+                        @Schema(implementation = ErrorTO.class)),
+                headers = {
+                    @Header(name = RESTHeaders.ERROR_CODE, schema =
+                            @Schema(type = "string"), description = "Error code"),
+                    @Header(name = RESTHeaders.ERROR_INFO, schema =
+                            @Schema(type = "string"), description = "Error message") })
+)
 public interface JAXRSService {
 
     String PARAM_FIQL = "fiql";

http://git-wip-us.apache.org/repos/asf/syncope/blob/2dda89d2/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 43b52b5..492dd78 100644
--- a/pom.xml
+++ b/pom.xml
@@ -418,7 +418,7 @@ under the License.
     <log.directory>${project.build.directory}/log</log.directory>
     <flowable-modeler.directory>${project.build.directory}/flowable-modeler</flowable-modeler.directory>
   
 
-    <swagger-core.version>2.0.0-rc4</swagger-core.version>    
+    <swagger-core.version>2.0.0</swagger-core.version>    
     <swagger-ui.version>3.13.0</swagger-ui.version>
     <guava.version>20.0</guava.version>
 


Mime
View raw message