-
Notifications
You must be signed in to change notification settings - Fork 2
/
jukebox.raml
67 lines (66 loc) · 1.48 KB
/
jukebox.raml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#%RAML 1.0 Library
types:
RamlDataType:
type: object
properties:
propString: string
propStringArray1: string[]
ideas:
type: array
items: !include ../schemas/idea.raml
extIdeas:
type: !include ../schemas/idea.raml
properties:
createdBy: string
feedback:
type: string
default: "very nice"
example: "very well made"
minLength: 1
maxLength: 255
pattern: "[a-zA-Z\\s]*"
propNumber:
type: number
minimum: 0
maximum: 32
format: int32
multipleOf: 2
propInteger:
type: integer
minimum: 3
maximum: 5
format: int8
multipleOf: 1
propBoolean: boolean
propDate:
type: date-only
example: 2015-05-23
userPicture:
type: file
fileTypes: ['image/jpeg', 'image/png']
maxLength: 307200
NilValue:
type: object
properties:
name:
comment: string?
CatOrDog: Cat | Dog
CatAndDog: [ Cat, Dog ]
PossibleMeetingDate:
type: CustomDate
noHolidays: true
Cat:
type: object
properties:
name: string
color: string
Dog:
type: object
properties:
name: string
fangs: string
CustomDate:
type: date-only
facets:
onlyFutureDates?: boolean # optional in `PossibleMeetingDate`
noHolidays: boolean # required in `PossibleMeetingDate`