-
Notifications
You must be signed in to change notification settings - Fork 6
/
integration_data.clj
29 lines (22 loc) · 1011 Bytes
/
integration_data.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(ns common-swagger-api.schema.integration-data
(:use [common-swagger-api.schema :only [describe NonBlankString]]
[schema.core :only [defschema optional-key]])
(:import [java.util UUID]))
(def IntegrationDataIdPathParam (describe UUID "A UUID that is used to identify the integration data record"))
(defschema IntegrationDataUpdate
{:email
(describe NonBlankString "The user's email address.")
:name
(describe NonBlankString "The user's name.")})
(defschema IntegrationDataRequest
(assoc IntegrationDataUpdate
(optional-key :username)
(describe NonBlankString "The username associated with the integration data entry.")))
(defschema IntegrationData
(assoc IntegrationDataRequest
:id (describe UUID "The integration data identifier.")))
(defschema IntegrationDataListing
{:integration_data
(describe [IntegrationData] "The list of integration data entries.")
:total
(describe Long "The total number of matching integration data entries.")})