mirror of
https://github.com/zap-proto/lsp.git
synced 2026-10-30 15:04:44 +00:00
34 lines
618 B
Plaintext
34 lines
618 B
Plaintext
# Copyright (c) 2024 Atsushi Tomida
|
|
#
|
|
# Licensed under the MIT License.
|
|
# See LICENSE file in the project root for full license information.
|
|
|
|
@0xb4f2917cd520da89;
|
|
|
|
using Common = import "/common.zap";
|
|
|
|
struct Map(Key, Value) {
|
|
entries @0 :List(Entry);
|
|
|
|
struct Entry {
|
|
key @0 :Key;
|
|
value @1 :Value;
|
|
}
|
|
}
|
|
|
|
struct People {
|
|
byName @0 :Map(Text, Person);
|
|
# Maps names to Person instances.
|
|
}
|
|
|
|
|
|
struct Thing {
|
|
thingName @0 :Map(Text, Text);
|
|
# Maps names to Person instances.
|
|
}
|
|
|
|
struct Person {
|
|
id @0 :UInt32;
|
|
job @1 :Common.JobType;
|
|
# job2 @2 :import "/common.zap".JobType;
|
|
} |