Skip to content

[native_assets_cli] Reorganize extension schemas #2093

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/hook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ jobs:
- run: dart test

- run: |
dart tool/generate.dart
dart tool/generate_schemas.dart
dart tool/generate_syntax.dart
dart tool/normalize.dart
git diff --exit-code
working-directory: pkgs/${{ matrix.package }}/
Expand Down
10 changes: 10 additions & 0 deletions pkgs/code_assets/doc/schema/hook/build_input.generated.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft-07/schema#",
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
"title": "package:code_assets party:hook BuildInput",
"allOf": [
{
"$ref": "shared_definitions.generated.schema.json#/definitions/BuildInput"
}
]
}
9 changes: 0 additions & 9 deletions pkgs/code_assets/doc/schema/hook/build_input.schema.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft-07/schema#",
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
"title": "package:code_assets party:hook BuildOutput",
"allOf": [
{
"$ref": "shared_definitions.generated.schema.json#/definitions/BuildOutput"
}
]
}
9 changes: 0 additions & 9 deletions pkgs/code_assets/doc/schema/hook/build_output.schema.json

This file was deleted.

10 changes: 10 additions & 0 deletions pkgs/code_assets/doc/schema/hook/link_input.generated.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft-07/schema#",
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
"title": "package:code_assets party:hook LinkInput",
"allOf": [
{
"$ref": "shared_definitions.generated.schema.json#/definitions/LinkInput"
}
]
}
9 changes: 0 additions & 9 deletions pkgs/code_assets/doc/schema/hook/link_input.schema.json

This file was deleted.

10 changes: 10 additions & 0 deletions pkgs/code_assets/doc/schema/hook/link_output.generated.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft-07/schema#",
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
"title": "package:code_assets party:hook LinkOutput",
"allOf": [
{
"$ref": "shared_definitions.generated.schema.json#/definitions/LinkOutput"
}
]
}
9 changes: 0 additions & 9 deletions pkgs/code_assets/doc/schema/hook/link_output.schema.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
{
"$schema": "https://json-schema.org/draft-07/schema#",
"title": "package:code_assets party:hook shared definitions",
"allOf": [
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json"
},
{
"$ref": "../shared/shared_definitions.schema.json#"
}
],
"$comment": "This schema was automatically generated. It combines various definitions into new definitions.",
"title": "package:code_assets party:hook shared definitions generated",
"definitions": {
"BuildInput": {
"allOf": [
{
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json#/definitions/BuildInput"
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildInput"
},
{
"$ref": "../shared/shared_definitions.schema.json#/definitions/BuildInput"
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildInput"
}
]
},
Expand All @@ -29,30 +22,30 @@
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json#/definitions/BuildOutput"
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildOutput"
},
{
"$ref": "../shared/shared_definitions.schema.json#/definitions/BuildOutput"
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildOutput"
}
]
},
"HookInput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json#/definitions/HookInput"
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookInput"
},
{
"$ref": "../shared/shared_definitions.schema.json#/definitions/HookInput"
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookInput"
}
]
},
"HookOutput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json#/definitions/HookOutput"
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookOutput"
},
{
"$ref": "../shared/shared_definitions.schema.json#/definitions/HookOutput"
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookOutput"
}
]
},
Expand All @@ -62,10 +55,10 @@
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json#/definitions/LinkInput"
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkInput"
},
{
"$ref": "../shared/shared_definitions.schema.json#/definitions/LinkInput"
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkInput"
}
]
},
Expand All @@ -75,10 +68,10 @@
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.schema.json#/definitions/LinkOutput"
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkOutput"
},
{
"$ref": "../shared/shared_definitions.schema.json#/definitions/LinkOutput"
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkOutput"
}
]
}
Expand Down
10 changes: 10 additions & 0 deletions pkgs/code_assets/doc/schema/sdk/build_input.generated.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft-07/schema#",
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
"title": "package:code_assets party:sdk BuildInput",
"allOf": [
{
"$ref": "shared_definitions.generated.schema.json#/definitions/BuildInput"
}
]
}
9 changes: 0 additions & 9 deletions pkgs/code_assets/doc/schema/sdk/build_input.schema.json

This file was deleted.

10 changes: 10 additions & 0 deletions pkgs/code_assets/doc/schema/sdk/build_output.generated.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft-07/schema#",
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
"title": "package:code_assets party:sdk BuildOutput",
"allOf": [
{
"$ref": "shared_definitions.generated.schema.json#/definitions/BuildOutput"
}
]
}
9 changes: 0 additions & 9 deletions pkgs/code_assets/doc/schema/sdk/build_output.schema.json

This file was deleted.

10 changes: 10 additions & 0 deletions pkgs/code_assets/doc/schema/sdk/link_input.generated.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft-07/schema#",
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
"title": "package:code_assets party:sdk LinkInput",
"allOf": [
{
"$ref": "shared_definitions.generated.schema.json#/definitions/LinkInput"
}
]
}
9 changes: 0 additions & 9 deletions pkgs/code_assets/doc/schema/sdk/link_input.schema.json

This file was deleted.

10 changes: 10 additions & 0 deletions pkgs/code_assets/doc/schema/sdk/link_output.generated.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft-07/schema#",
"$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
"title": "package:code_assets party:sdk LinkOutput",
"allOf": [
{
"$ref": "shared_definitions.generated.schema.json#/definitions/LinkOutput"
}
]
}
9 changes: 0 additions & 9 deletions pkgs/code_assets/doc/schema/sdk/link_output.schema.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"$schema": "https://json-schema.org/draft-07/schema#",
"$comment": "This schema was automatically generated. It combines various definitions into new definitions.",
"title": "package:code_assets party:sdk shared definitions generated",
"definitions": {
"BuildInput": {
"allOf": [
{
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildInput"
}
]
},
"BuildOutput": {
"allOf": [
{
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildOutput"
}
]
},
"HookInput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookInput"
}
]
},
"HookOutput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookOutput"
}
]
},
"LinkInput": {
"allOf": [
{
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkInput"
}
]
},
"LinkOutput": {
"allOf": [
{
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkOutput"
}
]
}
}
}
Loading