Line data Source code
1 4 : (ns schemas.api.users
2 : (:require
3 : [schemas.types :as types-schemas]))
4 :
5 :
6 4 : (def UsersResponseSchema
7 28 : [:map {:swagger/title "UsersResponseSchema"
8 : :swagger/description "Response containing list of users"}
9 20 : [:status [:= 200]]
10 48 : [:body [:map [:message :string] [:data [:sequential :any]]]]])
11 :
12 :
13 4 : (def UserResponseSchema
14 28 : [:map {:swagger/title "UserResponseSchema"
15 : :swagger/description "Response containing a single user"}
16 20 : [:status [:= 200]]
17 48 : [:body [:map [:message :string] [:data [:maybe :any]]]]])
18 :
19 :
20 4 : (def UserNotFoundResponseSchema
21 20 : [:map {:swagger/title "UserNotFoundResponseSchema"}
22 20 : [:status [:= 404]]
23 28 : [:body [:map [:message :string]]]])
24 :
25 :
26 4 : (def UserPathParamsSchema
27 20 : [:map {:swagger/title "UserPathParams"}
28 28 : [:uuid {:description "User UUID in v4 format"
29 : :example "550e8400-e29b-41d4-a716-446655440000"}
30 4 : types-schemas/UuidString]])
|