forked from dathere/ckanext-scheming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
camel_photos.yaml
77 lines (63 loc) · 1.51 KB
/
camel_photos.yaml
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
68
69
70
71
72
73
74
75
76
77
scheming_version: 2
dataset_type: camel-photos
about_url: http://example.com/the-camel-photos-schema
dataset_fields:
- field_name: title
label: Title
preset: title
form_placeholder: eg. Larry, Peter, Susan
- field_name: name
label: URL
preset: dataset_slug
form_placeholder: eg. camel-no-5
- field_name: humps
label: Humps
validators: ignore_missing int_validator
form_placeholder: eg. 2
- field_name: category
label: Category
help_text: Make and model
help_inline: true
preset: select
choices:
- value: bactrian
label: Bactrian Camel
- value: hybrid
label: Hybrid Camel
- value: f2hybrid
label: F2 Hybrid Camel
- value: snowwhite
label: Snow-white Dromedary
- value: black
label: Black Camel
- field_name: personality
label: Personality
preset: multiple_checkbox
choices:
- value: friendly
label: Often friendly
- value: jealous
label: Jealous of others
- value: spits
label: Tends to spit
- field_name: other
label:
en: Other information
output_validators: ignore_missing
resource_fields:
- field_name: url
label: Photo
preset: resource_url_upload
form_placeholder: http://example.com/my-camel-photo.jpg
upload_label: Photo
- field_name: camels_in_photo
label: Camels in Photo
validators: ignore_missing int_validator
form_placeholder: eg. 2
- field_name: others_in_photo
label: Other Thing in Photo
output_validators: ignore_missing
- field_name: datetime
label: Date Taken
label_time: Time Taken
preset: datetime