tangled
alpha
login
or
join now
danabra.mov
/
typelex
56
fork
atom
An experimental TypeSpec syntax for Lexicon
56
fork
atom
overview
issues
1
pulls
2
pipelines
oops
danabra.mov
5 months ago
9e023226
30395062
+17
-17
2 changed files
expand all
collapse all
unified
split
packages
emitter
test
spec
basic
output
com
example
profile.json
record.json
+8
-9
packages/emitter/test/spec/basic/output/com/example/profile.json
···
1
1
{
2
2
"lexicon": 1,
3
3
-
"id": "com.example.record",
3
3
+
"id": "com.example.profile",
4
4
"defs": {
5
5
"main": {
6
6
"type": "record",
7
7
-
"description": "A simple record with basic properties",
8
8
-
"key": "tid",
7
7
+
"description": "Record with literal 'self' key",
8
8
+
"key": "literal:self",
9
9
"record": {
10
10
"type": "object",
11
11
-
"required": ["text", "createdAt"],
11
11
+
"required": ["displayName"],
12
12
"properties": {
13
13
-
"text": {
13
13
+
"displayName": {
14
14
"type": "string",
15
15
-
"description": "The text content"
15
15
+
"maxGraphemes": 64
16
16
},
17
17
-
"createdAt": {
17
17
+
"description": {
18
18
"type": "string",
19
19
-
"format": "datetime",
20
20
-
"description": "When the record was created"
19
19
+
"maxGraphemes": 256
21
20
}
22
21
}
23
22
}
+9
-8
packages/emitter/test/spec/basic/output/com/example/record.json
···
1
1
{
2
2
"lexicon": 1,
3
3
-
"id": "com.example.profile",
3
3
+
"id": "com.example.record",
4
4
"defs": {
5
5
"main": {
6
6
"type": "record",
7
7
-
"description": "Record with literal 'self' key",
8
8
-
"key": "literal:self",
7
7
+
"description": "A simple record with basic properties",
8
8
+
"key": "tid",
9
9
"record": {
10
10
"type": "object",
11
11
-
"required": ["displayName"],
11
11
+
"required": ["text", "createdAt"],
12
12
"properties": {
13
13
-
"displayName": {
13
13
+
"text": {
14
14
"type": "string",
15
15
-
"maxGraphemes": 64
15
15
+
"description": "The text content"
16
16
},
17
17
-
"description": {
17
17
+
"createdAt": {
18
18
"type": "string",
19
19
-
"maxGraphemes": 256
19
19
+
"format": "datetime",
20
20
+
"description": "When the record was created"
20
21
}
21
22
}
22
23
}