|
5 | 5 | "type": "Record", |
6 | 6 | "attributes": { |
7 | 7 | "id": { |
8 | | - "type": "EntityOrCommon", |
9 | | - "name": "Long", |
10 | | - "annotations": { "doc": "task id" } |
| 8 | + "type": "Long", |
| 9 | + "annotations": { |
| 10 | + "doc": "task id" |
| 11 | + } |
11 | 12 | }, |
12 | | - "name": { "type": "EntityOrCommon", "name": "String" }, |
13 | | - "state": { "type": "EntityOrCommon", "name": "String" } |
| 13 | + "name": { |
| 14 | + "type": "String" |
| 15 | + }, |
| 16 | + "state": { |
| 17 | + "type": "String" |
| 18 | + } |
14 | 19 | }, |
15 | | - "annotations": { "doc": "a common type representing a task" } |
| 20 | + "annotations": { |
| 21 | + "doc": "a common type representing a task" |
| 22 | + } |
16 | 23 | }, |
17 | 24 | "Tasks": { |
18 | 25 | "type": "Set", |
19 | | - "element": { "type": "EntityOrCommon", "name": "Task" }, |
20 | | - "annotations": { "doc": "a common type representing a set of tasks" } |
| 26 | + "element": { |
| 27 | + "type": "TinyTodo::Task" |
| 28 | + }, |
| 29 | + "annotations": { |
| 30 | + "doc": "a common type representing a set of tasks" |
| 31 | + } |
21 | 32 | } |
22 | 33 | }, |
23 | 34 | "entityTypes": { |
24 | 35 | "Application": {}, |
25 | 36 | "List": { |
26 | | - "memberOfTypes": ["Application"], |
| 37 | + "memberOfTypes": ["TinyTodo::Application"], |
27 | 38 | "shape": { |
28 | 39 | "type": "Record", |
29 | 40 | "attributes": { |
30 | 41 | "editors": { |
31 | | - "type": "EntityOrCommon", |
32 | | - "name": "Team", |
33 | | - "annotations": { "doc": "editors of a list" } |
| 42 | + "type": "Entity", |
| 43 | + "name": "TinyTodo::Team", |
| 44 | + "annotations": { |
| 45 | + "doc": "editors of a list" |
| 46 | + } |
| 47 | + }, |
| 48 | + "name": { |
| 49 | + "type": "String" |
| 50 | + }, |
| 51 | + "owner": { |
| 52 | + "type": "Entity", |
| 53 | + "name": "TinyTodo::User" |
34 | 54 | }, |
35 | | - "name": { "type": "EntityOrCommon", "name": "String" }, |
36 | | - "owner": { "type": "EntityOrCommon", "name": "User" }, |
37 | 55 | "readers": { |
38 | | - "type": "EntityOrCommon", |
39 | | - "name": "Team", |
40 | | - "annotations": { "doc": "readers of a list" } |
| 56 | + "type": "Entity", |
| 57 | + "name": "TinyTodo::Team", |
| 58 | + "annotations": { |
| 59 | + "doc": "readers of a list" |
| 60 | + } |
41 | 61 | }, |
42 | | - "tasks": { "type": "EntityOrCommon", "name": "Tasks" } |
| 62 | + "tasks": { |
| 63 | + "type": "TinyTodo::Tasks" |
| 64 | + } |
43 | 65 | } |
44 | 66 | }, |
45 | 67 | "annotations": { |
|
52 | 74 | }, |
53 | 75 | "actions": { |
54 | 76 | "DeleteList": { |
55 | | - "appliesTo": { "resourceTypes": ["List"], "principalTypes": ["User"] }, |
56 | | - "annotations": { "doc": "actions that a user can operate on a list" } |
| 77 | + "appliesTo": { |
| 78 | + "resourceTypes": ["TinyTodo::List"], |
| 79 | + "principalTypes": ["TinyTodo::User"] |
| 80 | + }, |
| 81 | + "annotations": { |
| 82 | + "doc": "actions that a user can operate on a list" |
| 83 | + } |
57 | 84 | }, |
58 | 85 | "GetList": { |
59 | | - "appliesTo": { "resourceTypes": ["List"], "principalTypes": ["User"] }, |
60 | | - "annotations": { "doc": "actions that a user can operate on a list" } |
| 86 | + "appliesTo": { |
| 87 | + "resourceTypes": ["TinyTodo::List"], |
| 88 | + "principalTypes": ["TinyTodo::User"] |
| 89 | + }, |
| 90 | + "annotations": { |
| 91 | + "doc": "actions that a user can operate on a list" |
| 92 | + } |
61 | 93 | }, |
62 | 94 | "UpdateList": { |
63 | | - "appliesTo": { "resourceTypes": ["List"], "principalTypes": ["User"] }, |
64 | | - "annotations": { "doc": "actions that a user can operate on a list" } |
| 95 | + "appliesTo": { |
| 96 | + "resourceTypes": ["TinyTodo::List"], |
| 97 | + "principalTypes": ["TinyTodo::User"] |
| 98 | + }, |
| 99 | + "annotations": { |
| 100 | + "doc": "actions that a user can operate on a list" |
| 101 | + } |
65 | 102 | } |
66 | 103 | }, |
67 | | - "annotations": { "doc": "this is the namespace" } |
| 104 | + "annotations": { |
| 105 | + "doc": "this is the namespace" |
| 106 | + } |
68 | 107 | } |
69 | 108 | } |
0 commit comments