Skip to content

Commit 8abee90

Browse files
authored
[native_assets_cli] Reorganize extension schemas (#2093)
1 parent 563a743 commit 8abee90

File tree

88 files changed

+1092
-960
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1092
-960
lines changed

.github/workflows/hook.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ jobs:
5454
- run: dart test
5555

5656
- run: |
57-
dart tool/generate.dart
57+
dart tool/generate_schemas.dart
58+
dart tool/generate_syntax.dart
5859
dart tool/normalize.dart
5960
git diff --exit-code
6061
working-directory: pkgs/${{ matrix.package }}/
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema#",
3+
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4+
"title": "package:code_assets party:hook BuildInput",
5+
"allOf": [
6+
{
7+
"$ref": "shared_definitions.generated.schema.json#/definitions/BuildInput"
8+
}
9+
]
10+
}

pkgs/code_assets/doc/schema/hook/build_input.schema.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema#",
3+
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4+
"title": "package:code_assets party:hook BuildOutput",
5+
"allOf": [
6+
{
7+
"$ref": "shared_definitions.generated.schema.json#/definitions/BuildOutput"
8+
}
9+
]
10+
}

pkgs/code_assets/doc/schema/hook/build_output.schema.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema#",
3+
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4+
"title": "package:code_assets party:hook LinkInput",
5+
"allOf": [
6+
{
7+
"$ref": "shared_definitions.generated.schema.json#/definitions/LinkInput"
8+
}
9+
]
10+
}

pkgs/code_assets/doc/schema/hook/link_input.schema.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema#",
3+
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4+
"title": "package:code_assets party:hook LinkOutput",
5+
"allOf": [
6+
{
7+
"$ref": "shared_definitions.generated.schema.json#/definitions/LinkOutput"
8+
}
9+
]
10+
}

pkgs/code_assets/doc/schema/hook/link_output.schema.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

pkgs/code_assets/doc/schema/hook/shared_definitions.schema.json renamed to pkgs/code_assets/doc/schema/hook/shared_definitions.generated.schema.json

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
{
22
"$schema": "https://json-schema.org/draft-07/schema#",
3-
"title": "package:code_assets party:hook shared definitions",
4-
"allOf": [
5-
{
6-
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json"
7-
},
8-
{
9-
"$ref": "../shared/shared_definitions.schema.json#"
10-
}
11-
],
3+
"$comment": "This schema was automatically generated. It combines various definitions into new definitions.",
4+
"title": "package:code_assets party:hook shared definitions generated",
125
"definitions": {
136
"BuildInput": {
147
"allOf": [
158
{
169
"$ref": "#/definitions/HookInput"
1710
},
1811
{
19-
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json#/definitions/BuildInput"
12+
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildInput"
2013
},
2114
{
22-
"$ref": "../shared/shared_definitions.schema.json#/definitions/BuildInput"
15+
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildInput"
2316
}
2417
]
2518
},
@@ -29,30 +22,30 @@
2922
"$ref": "#/definitions/HookOutput"
3023
},
3124
{
32-
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json#/definitions/BuildOutput"
25+
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildOutput"
3326
},
3427
{
35-
"$ref": "../shared/shared_definitions.schema.json#/definitions/BuildOutput"
28+
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildOutput"
3629
}
3730
]
3831
},
3932
"HookInput": {
4033
"allOf": [
4134
{
42-
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json#/definitions/HookInput"
35+
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookInput"
4336
},
4437
{
45-
"$ref": "../shared/shared_definitions.schema.json#/definitions/HookInput"
38+
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookInput"
4639
}
4740
]
4841
},
4942
"HookOutput": {
5043
"allOf": [
5144
{
52-
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json#/definitions/HookOutput"
45+
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookOutput"
5346
},
5447
{
55-
"$ref": "../shared/shared_definitions.schema.json#/definitions/HookOutput"
48+
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookOutput"
5649
}
5750
]
5851
},
@@ -62,10 +55,10 @@
6255
"$ref": "#/definitions/HookInput"
6356
},
6457
{
65-
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json#/definitions/LinkInput"
58+
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkInput"
6659
},
6760
{
68-
"$ref": "../shared/shared_definitions.schema.json#/definitions/LinkInput"
61+
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkInput"
6962
}
7063
]
7164
},
@@ -75,10 +68,10 @@
7568
"$ref": "#/definitions/HookOutput"
7669
},
7770
{
78-
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json#/definitions/LinkOutput"
71+
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkOutput"
7972
},
8073
{
81-
"$ref": "../shared/shared_definitions.schema.json#/definitions/LinkOutput"
74+
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkOutput"
8275
}
8376
]
8477
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema#",
3+
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4+
"title": "package:code_assets party:sdk BuildInput",
5+
"allOf": [
6+
{
7+
"$ref": "shared_definitions.generated.schema.json#/definitions/BuildInput"
8+
}
9+
]
10+
}

pkgs/code_assets/doc/schema/sdk/build_input.schema.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema#",
3+
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4+
"title": "package:code_assets party:sdk BuildOutput",
5+
"allOf": [
6+
{
7+
"$ref": "shared_definitions.generated.schema.json#/definitions/BuildOutput"
8+
}
9+
]
10+
}

pkgs/code_assets/doc/schema/sdk/build_output.schema.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema#",
3+
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4+
"title": "package:code_assets party:sdk LinkInput",
5+
"allOf": [
6+
{
7+
"$ref": "shared_definitions.generated.schema.json#/definitions/LinkInput"
8+
}
9+
]
10+
}

pkgs/code_assets/doc/schema/sdk/link_input.schema.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema#",
3+
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4+
"title": "package:code_assets party:sdk LinkOutput",
5+
"allOf": [
6+
{
7+
"$ref": "shared_definitions.generated.schema.json#/definitions/LinkOutput"
8+
}
9+
]
10+
}

pkgs/code_assets/doc/schema/sdk/link_output.schema.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema#",
3+
"$comment": "This schema was automatically generated. It combines various definitions into new definitions.",
4+
"title": "package:code_assets party:sdk shared definitions generated",
5+
"definitions": {
6+
"BuildInput": {
7+
"allOf": [
8+
{
9+
"$ref": "#/definitions/HookInput"
10+
},
11+
{
12+
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildInput"
13+
},
14+
{
15+
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildInput"
16+
}
17+
]
18+
},
19+
"BuildOutput": {
20+
"allOf": [
21+
{
22+
"$ref": "#/definitions/HookOutput"
23+
},
24+
{
25+
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildOutput"
26+
},
27+
{
28+
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildOutput"
29+
}
30+
]
31+
},
32+
"HookInput": {
33+
"allOf": [
34+
{
35+
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookInput"
36+
},
37+
{
38+
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookInput"
39+
}
40+
]
41+
},
42+
"HookOutput": {
43+
"allOf": [
44+
{
45+
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookOutput"
46+
},
47+
{
48+
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookOutput"
49+
}
50+
]
51+
},
52+
"LinkInput": {
53+
"allOf": [
54+
{
55+
"$ref": "#/definitions/HookInput"
56+
},
57+
{
58+
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkInput"
59+
},
60+
{
61+
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkInput"
62+
}
63+
]
64+
},
65+
"LinkOutput": {
66+
"allOf": [
67+
{
68+
"$ref": "#/definitions/HookOutput"
69+
},
70+
{
71+
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkOutput"
72+
},
73+
{
74+
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkOutput"
75+
}
76+
]
77+
}
78+
}
79+
}

0 commit comments

Comments
 (0)