Skip to content

Commit

Permalink
Config check (#251)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
vordimous authored Sep 23, 2024
1 parent a4e8177 commit ef0f292
Show file tree
Hide file tree
Showing 243 changed files with 18,471 additions and 9,493 deletions.
27 changes: 26 additions & 1 deletion .check-schema/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
docker run ghcr.io/aklivity/zilla:latest start -v -Pzilla.engine.verbose.schema >> zilla-schema.json
# Schema Docs Comparison

This project compares the JSON Schema from the Zilla to the [Reference](../src/reference) section of the docs.

## Update schema

In the repository root directory run:

```bash
brew install gsed
```

```bash
CONTAINER_ID=$(docker run -d --rm -e ZILLA_INCUBATOR_ENABLED=true ghcr.io/aklivity/zilla:develop-SNAPSHOT start -v -Pzilla.engine.verbose.schema.plain);
sleep 5;
docker logs $CONTAINER_ID > ./.check-schema/zilla-schema.json 2>&1;
docker stop $CONTAINER_ID;

gsed -i '1,2d' ./.check-schema/zilla-schema.json;
gsed -i '$d' ./.check-schema/zilla-schema.json;

```

Once the docker container has printed "started" it must be deleted for the command to complete.

Remove the none JSON lines from the beginning and end of each file.
9 changes: 9 additions & 0 deletions .check-schema/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import globals from "globals";
import pluginJs from "@eslint/js";


export default [
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
];
552 changes: 400 additions & 152 deletions .check-schema/index.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .check-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@
"main": "index.js",
"scripts": {
"check": "node index.js",
"lint": "eslint --fix",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@apidevtools/json-schema-ref-parser": "^11.7.0",
"@eslint/js": "^9.9.1",
"eslint": "^9.9.1",
"globals": "^15.9.0",
"marked": "^11.0.0"
}
}
Loading

0 comments on commit ef0f292

Please sign in to comment.