Skip to content

Commit ef0f292

Browse files
authored
Config check (#251)
* feat: update solution landing pages and add web streaming * fix: update links and add redirect * feat: update code highlighting theme * chore: move type and kind and remove ToC * feat: update reference locations and change the parser to compare individual kinds * fix: remove extra schema:version option for the cataloged $def * fix: add MSK SPA auth links on deploy page * fix: handle required fields * fix: parse schema types and defaults * fix: model types and required * chore: update action versions * feat: add zilla.yaml file placeholders * fix: add the sidebar hack to prevent auto expand * feat: allow failed github action
1 parent a4e8177 commit ef0f292

File tree

243 files changed

+18471
-9493
lines changed

Some content is hidden

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

243 files changed

+18471
-9493
lines changed

.check-schema/README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
1-
docker run ghcr.io/aklivity/zilla:latest start -v -Pzilla.engine.verbose.schema >> zilla-schema.json
1+
# Schema Docs Comparison
2+
3+
This project compares the JSON Schema from the Zilla to the [Reference](../src/reference) section of the docs.
4+
5+
## Update schema
6+
7+
In the repository root directory run:
8+
9+
```bash
10+
brew install gsed
11+
```
12+
13+
```bash
14+
CONTAINER_ID=$(docker run -d --rm -e ZILLA_INCUBATOR_ENABLED=true ghcr.io/aklivity/zilla:develop-SNAPSHOT start -v -Pzilla.engine.verbose.schema.plain);
15+
sleep 5;
16+
docker logs $CONTAINER_ID > ./.check-schema/zilla-schema.json 2>&1;
17+
docker stop $CONTAINER_ID;
18+
19+
gsed -i '1,2d' ./.check-schema/zilla-schema.json;
20+
gsed -i '$d' ./.check-schema/zilla-schema.json;
21+
22+
```
23+
24+
Once the docker container has printed "started" it must be deleted for the command to complete.
25+
26+
Remove the none JSON lines from the beginning and end of each file.

.check-schema/eslint.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
4+
5+
export default [
6+
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
7+
{ languageOptions: { globals: globals.browser } },
8+
pluginJs.configs.recommended,
9+
];

.check-schema/index.js

Lines changed: 400 additions & 152 deletions
Large diffs are not rendered by default.

.check-schema/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@
55
"main": "index.js",
66
"scripts": {
77
"check": "node index.js",
8+
"lint": "eslint --fix",
89
"test": "echo \"Error: no test specified\" && exit 1"
910
},
1011
"keywords": [],
1112
"author": "",
1213
"license": "ISC",
1314
"devDependencies": {
15+
"@apidevtools/json-schema-ref-parser": "^11.7.0",
16+
"@eslint/js": "^9.9.1",
17+
"eslint": "^9.9.1",
18+
"globals": "^15.9.0",
1419
"marked": "^11.0.0"
1520
}
1621
}

0 commit comments

Comments
 (0)