-
Notifications
You must be signed in to change notification settings - Fork 3
/
profile_v1.cue
executable file
·39 lines (34 loc) · 965 Bytes
/
profile_v1.cue
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
{
_schema: {
name: "Profile"
namespace: "schemas.cueblox.com"
}
#Profile: {
_dataset: {
plural: "profiles"
supportedExtensions: ["yaml", "yml", "md", "mdx"]
}
first_name: string @template("Forename")
last_name: string @template("Surname")
age?: int @template(21)
company?: string @template("CueBlox")
title?: string @template("Cue Slinger")
body?: string @template("☕️ Required")
image?: string
// social_accounts?: [...#TwitterAccount | #GitHubAccount | #MiscellaneousAccount]
}
#TwitterAccount: {
network: "twitter"
username: string @template("twitter-handle")
url: *"https://twitter.com/\(username)" | string
}
#GitHubAccount: {
network: "github"
username: string @template("github-handle")
url: *"https://github.com/\(username)" | string
}
#MiscellaneousAccount: {
network: string @template("some_network")
url: string @template("https://some_url")
}
}