forked from
stavola.xyz/mlf
A human-friendly DSL for ATProto Lexicons
1// Test imports - new syntax with dot
2use com.example.forum.profile;
3use com.example.thread.{ main };
4use com.example.types.{ author, postRef };
5use com.example.post.{ main as Post };
6use com.example.user.{ main as User, userMeta };
7
8// Test wildcard and alias
9use com.example.forum.*;
10use com.example.types as Types;
11
12/// A simple post record
13record post {
14 /// Post text
15 text!: string constrained {
16 maxLength: 300,
17 minLength: 1,
18 },
19 /// Creation timestamp
20 createdAt!: Datetime,
21 author: profile,
22 thread: Post,
23}