Skip to content
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

Config check #251

Open
wants to merge 54 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
035a1cc
feat: update solution landing pages and add web streaming
vordimous Aug 16, 2024
c6da75d
fix: update links and add redirect
vordimous Aug 16, 2024
715e874
update code highlighting theme
vordimous Aug 16, 2024
7918f31
and nested link
vordimous Aug 16, 2024
75c273b
update schema
vordimous Aug 1, 2024
597a7ad
updated schema parser
vordimous Aug 6, 2024
addf53c
add type header
vordimous Aug 13, 2024
23a4a9f
chore: move type and kind and remove ToC
vordimous Aug 16, 2024
e7d8eb3
rework reference section structure
vordimous Aug 20, 2024
33c00bc
update reference locations and change the parser to compare individua…
vordimous Aug 21, 2024
edf01a8
update ref sections
vordimous Aug 21, 2024
f614c3b
got the inheritance of attributes working
vordimous Aug 22, 2024
c7b762e
update all ref directories
vordimous Aug 22, 2024
c63e795
get all bindings correctly parsed
vordimous Aug 23, 2024
a412bd3
update model properties
vordimous Aug 26, 2024
eb18cfd
newest schema
vordimous Aug 26, 2024
1e13d58
markdown lint
vordimous Aug 26, 2024
cf20801
fix links
vordimous Aug 26, 2024
35d2198
link fixing
vordimous Aug 26, 2024
1a6cef7
sidebar styles
vordimous Aug 26, 2024
604e65f
Update .github/contributing/writing-guide.md
vordimous Aug 27, 2024
b7ca8ce
Update src/reference/config/bindings/asyncapi/.partials/proxy.yaml
vordimous Aug 27, 2024
7d44974
Update src/reference/config/bindings/ws/.partials/server.yaml
vordimous Aug 27, 2024
c0eb747
fix: remove extra schema:version option for the cataloged $def
vordimous Aug 27, 2024
78ff9f6
fix: add MSK SPA auth links on deploy page
vordimous Aug 27, 2024
4efe98b
fix: remove the cataloged refs with "schema"
vordimous Aug 27, 2024
e23f174
fix: move catalog
vordimous Aug 27, 2024
8c12b8b
fix: handle required fields
vordimous Aug 28, 2024
5bb84d3
fix: specs catalog ref
vordimous Aug 28, 2024
bdf4e1d
fix: parse schema types and defaults
vordimous Aug 29, 2024
50ac3b7
fix: model types and required
vordimous Aug 30, 2024
c1533d1
fix: links and tls options ref
vordimous Aug 30, 2024
e14a5e1
fix: models link
vordimous Aug 30, 2024
434e556
fix nested parsing for oneOf and anyOf
vordimous Sep 5, 2024
24835a8
add anyOf and allOf parsing
vordimous Sep 6, 2024
3a2667e
update schema from zilla
vordimous Sep 6, 2024
3864282
update property descritpions
vordimous Sep 9, 2024
bd7afc8
add schema check action
vordimous Sep 10, 2024
2e0d5df
fix tls props and otlp defaults
vordimous Sep 10, 2024
e7a1000
check for global kind proper
vordimous Sep 10, 2024
8b5938d
update schema from develop
vordimous Sep 10, 2024
68ab482
chore: update action versions
vordimous Sep 10, 2024
e58fe2c
update catalog
vordimous Sep 11, 2024
4c560cb
fix catalog array
vordimous Sep 11, 2024
dab9d7e
format
vordimous Sep 11, 2024
a9246ad
remove defautl hystorical
vordimous Sep 13, 2024
663d160
update object map naming
vordimous Sep 17, 2024
7bfcf37
update transforms docs
vordimous Sep 17, 2024
6f7f86f
update challenge type
vordimous Sep 18, 2024
82a72e8
fix global inheritance
vordimous Sep 18, 2024
89ba7bc
normalizing options description syntax
vordimous Sep 18, 2024
2e50035
update descriptions and tags
vordimous Sep 18, 2024
5028d54
add zilla.yaml file placeholders
vordimous Sep 18, 2024
cd4537e
update tags
vordimous Sep 18, 2024
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
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