[SYNCOPE-1274] Missing some OpenApi stuff

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

Branch: refs/heads/master
Commit: 08c1aa43b3f6a3e700bf3675120b5315c0dffb3a
Parents: 5cbdfe7
Author: Francesco Chicchiriccò <ilgro...@apache.org>
Authored: Tue Feb 13 21:46:12 2018 +0100
Committer: Francesco Chicchiriccò <ilgro...@apache.org>
Committed: Tue Feb 13 21:46:12 2018 +0100

----------------------------------------------------------------------
 .../org/apache/syncope/common/lib/patch/AnyObjectPatch.java     | 1 +
 .../java/org/apache/syncope/common/lib/patch/GroupPatch.java    | 1 +
 .../java/org/apache/syncope/common/lib/patch/UserPatch.java     | 1 +
 .../org/apache/syncope/common/lib/policy/AccountPolicyTO.java   | 1 +
 .../org/apache/syncope/common/lib/policy/PasswordPolicyTO.java  | 1 +
 .../java/org/apache/syncope/common/lib/policy/PullPolicyTO.java | 1 +
 .../main/java/org/apache/syncope/common/lib/to/AnyObjectTO.java | 1 +
 .../main/java/org/apache/syncope/common/lib/to/DerSchemaTO.java | 1 +
 .../src/main/java/org/apache/syncope/common/lib/to/GroupTO.java | 1 +
 .../org/apache/syncope/common/lib/to/NotificationTaskTO.java    | 1 +
 .../java/org/apache/syncope/common/lib/to/PlainSchemaTO.java    | 1 +
 .../org/apache/syncope/common/lib/to/PropagationTaskTO.java     | 1 +
 .../org/apache/syncope/common/lib/to/ProvisioningTaskTO.java    | 5 +++--
 .../main/java/org/apache/syncope/common/lib/to/PullTaskTO.java  | 1 +
 .../main/java/org/apache/syncope/common/lib/to/PushTaskTO.java  | 1 +
 .../main/java/org/apache/syncope/common/lib/to/SchedTaskTO.java | 2 +-
 .../src/main/java/org/apache/syncope/common/lib/to/UserTO.java  | 1 +
 .../main/java/org/apache/syncope/common/lib/to/VirSchemaTO.java | 1 +
 18 files changed, 20 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/common/lib/src/main/java/org/apache/syncope/common/lib/patch/AnyObjectPatch.java
----------------------------------------------------------------------
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/patch/AnyObjectPatch.java
 
b/common/lib/src/main/java/org/apache/syncope/common/lib/patch/AnyObjectPatch.java
index 9a37cae..8b0bff2 100644
--- 
a/common/lib/src/main/java/org/apache/syncope/common/lib/patch/AnyObjectPatch.java
+++ 
b/common/lib/src/main/java/org/apache/syncope/common/lib/patch/AnyObjectPatch.java
@@ -29,6 +29,7 @@ import javax.xml.bind.annotation.XmlType;
 
 @XmlRootElement(name = "anyObjectPatch")
 @XmlType
+@Schema(allOf = { AnyPatch.class })
 public class AnyObjectPatch extends AnyPatch {
 
     private static final long serialVersionUID = -1644118942622556097L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/common/lib/src/main/java/org/apache/syncope/common/lib/patch/GroupPatch.java
----------------------------------------------------------------------
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/patch/GroupPatch.java 
b/common/lib/src/main/java/org/apache/syncope/common/lib/patch/GroupPatch.java
index 0ddddfb..2ff1ebb 100644
--- 
a/common/lib/src/main/java/org/apache/syncope/common/lib/patch/GroupPatch.java
+++ 
b/common/lib/src/main/java/org/apache/syncope/common/lib/patch/GroupPatch.java
@@ -36,6 +36,7 @@ import org.apache.syncope.common.lib.to.TypeExtensionTO;
 
 @XmlRootElement(name = "groupPatch")
 @XmlType
+@Schema(allOf = { AnyPatch.class })
 public class GroupPatch extends AnyPatch {
 
     private static final long serialVersionUID = -460284378124440077L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/common/lib/src/main/java/org/apache/syncope/common/lib/patch/UserPatch.java
----------------------------------------------------------------------
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/patch/UserPatch.java 
b/common/lib/src/main/java/org/apache/syncope/common/lib/patch/UserPatch.java
index c9e7038..79795ae 100644
--- 
a/common/lib/src/main/java/org/apache/syncope/common/lib/patch/UserPatch.java
+++ 
b/common/lib/src/main/java/org/apache/syncope/common/lib/patch/UserPatch.java
@@ -29,6 +29,7 @@ import javax.xml.bind.annotation.XmlType;
 
 @XmlRootElement(name = "userPatch")
 @XmlType
+@Schema(allOf = { AnyPatch.class })
 public class UserPatch extends AnyPatch {
 
     private static final long serialVersionUID = 2872795537911821448L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/common/lib/src/main/java/org/apache/syncope/common/lib/policy/AccountPolicyTO.java
----------------------------------------------------------------------
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/policy/AccountPolicyTO.java
 
b/common/lib/src/main/java/org/apache/syncope/common/lib/policy/AccountPolicyTO.java
index bf05ea3..95c6433 100644
--- 
a/common/lib/src/main/java/org/apache/syncope/common/lib/policy/AccountPolicyTO.java
+++ 
b/common/lib/src/main/java/org/apache/syncope/common/lib/policy/AccountPolicyTO.java
@@ -30,6 +30,7 @@ import javax.xml.bind.annotation.XmlType;
 
 @XmlRootElement(name = "accountPolicy")
 @XmlType
+@Schema(allOf = { PolicyTO.class })
 public class AccountPolicyTO extends PolicyTO implements ComposablePolicy {
 
     private static final long serialVersionUID = -1557150042828800134L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PasswordPolicyTO.java
----------------------------------------------------------------------
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PasswordPolicyTO.java
 
b/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PasswordPolicyTO.java
index 9f71072..4b480e5 100644
--- 
a/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PasswordPolicyTO.java
+++ 
b/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PasswordPolicyTO.java
@@ -30,6 +30,7 @@ import javax.xml.bind.annotation.XmlType;
 
 @XmlRootElement(name = "passwordPolicy")
 @XmlType
+@Schema(allOf = { PolicyTO.class })
 public class PasswordPolicyTO extends PolicyTO implements ComposablePolicy {
 
     private static final long serialVersionUID = -5606086441294799690L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PullPolicyTO.java
----------------------------------------------------------------------
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PullPolicyTO.java
 
b/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PullPolicyTO.java
index 6ac847a..967f04d 100644
--- 
a/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PullPolicyTO.java
+++ 
b/common/lib/src/main/java/org/apache/syncope/common/lib/policy/PullPolicyTO.java
@@ -31,6 +31,7 @@ import 
org.apache.syncope.common.lib.types.ConflictResolutionAction;
 
 @XmlRootElement(name = "pullPolicy")
 @XmlType
+@Schema(allOf = { PolicyTO.class })
 public class PullPolicyTO extends PolicyTO {
 
     private static final long serialVersionUID = 993024634238024242L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/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 61c7173..4ac3fd8 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
@@ -32,6 +32,7 @@ import javax.xml.bind.annotation.XmlType;
 
 @XmlRootElement(name = "anyObject")
 @XmlType
+@Schema(allOf = { AnyTO.class })
 public class AnyObjectTO extends AnyTO implements GroupableRelatableTO {
 
     private static final long serialVersionUID = 8841697496476959639L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/common/lib/src/main/java/org/apache/syncope/common/lib/to/DerSchemaTO.java
----------------------------------------------------------------------
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/DerSchemaTO.java 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/DerSchemaTO.java
index d2242b5..5508265 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/DerSchemaTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/DerSchemaTO.java
@@ -26,6 +26,7 @@ import javax.xml.bind.annotation.XmlType;
 
 @XmlRootElement(name = "derSchema")
 @XmlType
+@Schema(allOf = { SchemaTO.class })
 public class DerSchemaTO extends SchemaTO {
 
     private static final long serialVersionUID = -6747399803792103108L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/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 e1de0d7..dcc6ae9 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
@@ -37,6 +37,7 @@ import org.apache.syncope.common.lib.types.AnyTypeKind;
 
 @XmlRootElement(name = "group")
 @XmlType
+@Schema(allOf = { AnyTO.class })
 public class GroupTO extends AnyTO {
 
     private static final long serialVersionUID = -7785920258290147542L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/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 0f6b4f1..a0ae3e7 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
@@ -32,6 +32,7 @@ import org.apache.syncope.common.lib.types.TraceLevel;
 
 @XmlRootElement(name = "notificationTask")
 @XmlType
+@Schema(allOf = { TaskTO.class })
 public class NotificationTaskTO extends TaskTO {
 
     private static final long serialVersionUID = 371671242591093846L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/common/lib/src/main/java/org/apache/syncope/common/lib/to/PlainSchemaTO.java
----------------------------------------------------------------------
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/PlainSchemaTO.java 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/PlainSchemaTO.java
index 2eba6f6..7e5d3de 100644
--- 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/PlainSchemaTO.java
+++ 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/PlainSchemaTO.java
@@ -30,6 +30,7 @@ import org.apache.syncope.common.lib.types.CipherAlgorithm;
 
 @XmlRootElement(name = "plainSchema")
 @XmlType
+@Schema(allOf = { SchemaTO.class })
 public class PlainSchemaTO extends SchemaTO {
 
     private static final long serialVersionUID = -8133983392476990308L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/common/lib/src/main/java/org/apache/syncope/common/lib/to/PropagationTaskTO.java
----------------------------------------------------------------------
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/PropagationTaskTO.java
 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/PropagationTaskTO.java
index 66f804e..5d6ee20 100644
--- 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/PropagationTaskTO.java
+++ 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/PropagationTaskTO.java
@@ -29,6 +29,7 @@ import org.apache.syncope.common.lib.types.ResourceOperation;
 
 @XmlRootElement(name = "propagationTask")
 @XmlType
+@Schema(allOf = { TaskTO.class })
 public class PropagationTaskTO extends TaskTO {
 
     private static final long serialVersionUID = 386450127003321197L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/common/lib/src/main/java/org/apache/syncope/common/lib/to/ProvisioningTaskTO.java
----------------------------------------------------------------------
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/ProvisioningTaskTO.java
 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/ProvisioningTaskTO.java
index c152190..27d4f9b 100644
--- 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/ProvisioningTaskTO.java
+++ 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/ProvisioningTaskTO.java
@@ -24,7 +24,6 @@ import java.util.ArrayList;
 import java.util.List;
 import javax.xml.bind.annotation.XmlElement;
 import javax.xml.bind.annotation.XmlElementWrapper;
-
 import javax.xml.bind.annotation.XmlRootElement;
 import javax.xml.bind.annotation.XmlSeeAlso;
 import javax.xml.bind.annotation.XmlType;
@@ -34,7 +33,9 @@ import org.apache.syncope.common.lib.types.UnmatchingRule;
 @XmlRootElement(name = "provisioningTask")
 @XmlType
 @XmlSeeAlso({ PushTaskTO.class, PullTaskTO.class })
-@Schema(subTypes = { PushTaskTO.class, PullTaskTO.class }, 
discriminatorProperty = "@class")
+@Schema(
+        allOf = { SchedTaskTO.class },
+        subTypes = { PushTaskTO.class, PullTaskTO.class }, 
discriminatorProperty = "@class")
 public abstract class ProvisioningTaskTO extends SchedTaskTO {
 
     private static final long serialVersionUID = -5722284116974636425L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/common/lib/src/main/java/org/apache/syncope/common/lib/to/PullTaskTO.java
----------------------------------------------------------------------
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/PullTaskTO.java 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/PullTaskTO.java
index 16e578d..2638ad6 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/PullTaskTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/PullTaskTO.java
@@ -35,6 +35,7 @@ import org.apache.syncope.common.lib.types.PullMode;
 @XmlRootElement(name = "pullTask")
 @XmlType
 @XmlAccessorType(XmlAccessType.FIELD)
+@Schema(allOf = { ProvisioningTaskTO.class })
 public class PullTaskTO extends ProvisioningTaskTO implements TemplatableTO {
 
     private static final long serialVersionUID = -2143537546915809017L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/common/lib/src/main/java/org/apache/syncope/common/lib/to/PushTaskTO.java
----------------------------------------------------------------------
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/PushTaskTO.java 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/PushTaskTO.java
index 2dc02c1..d9f8d6e 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/PushTaskTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/PushTaskTO.java
@@ -34,6 +34,7 @@ import 
org.apache.syncope.common.lib.jaxb.XmlGenericMapAdapter;
 @XmlRootElement(name = "pushTask")
 @XmlType
 @XmlAccessorType(XmlAccessType.FIELD)
+@Schema(allOf = { ProvisioningTaskTO.class })
 public class PushTaskTO extends ProvisioningTaskTO {
 
     private static final long serialVersionUID = -2143537546915809018L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/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 d903ad3..69f5b95 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
@@ -30,7 +30,7 @@ import javax.xml.bind.annotation.XmlType;
 @XmlRootElement(name = "schedTask")
 @XmlType
 @XmlSeeAlso({ ProvisioningTaskTO.class })
-@Schema(subTypes = { ProvisioningTaskTO.class }, discriminatorProperty = 
"@class")
+@Schema(allOf = { TaskTO.class }, subTypes = { ProvisioningTaskTO.class }, 
discriminatorProperty = "@class")
 public class SchedTaskTO extends TaskTO {
 
     private static final long serialVersionUID = -5722284116974636425L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/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 79d5c12..0341f48 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
@@ -34,6 +34,7 @@ import org.apache.syncope.common.lib.types.AnyTypeKind;
 
 @XmlRootElement(name = "user")
 @XmlType
+@Schema(allOf = { AnyTO.class })
 public class UserTO extends AnyTO implements GroupableRelatableTO {
 
     private static final long serialVersionUID = 7791304495192615740L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/08c1aa43/common/lib/src/main/java/org/apache/syncope/common/lib/to/VirSchemaTO.java
----------------------------------------------------------------------
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/VirSchemaTO.java 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/VirSchemaTO.java
index df7121b..300e129 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/VirSchemaTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/VirSchemaTO.java
@@ -24,6 +24,7 @@ import javax.xml.bind.annotation.XmlRootElement;
 import javax.xml.bind.annotation.XmlTransient;
 
 @XmlRootElement(name = "virSchema")
+@Schema(allOf = { SchemaTO.class })
 public class VirSchemaTO extends SchemaTO {
 
     private static final long serialVersionUID = -8198557479659701343L;

Reply via email to