Skip to content

Commit

Permalink
Update schemas for 29 bit CAN (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeff Verkoeyen <[email protected]>
  • Loading branch information
electricsidecar-dev and jverkoey authored Oct 1, 2024
1 parent feb76be commit b0b9599
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 132 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/json-yaml-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
base_dir: signalsets/v3/
json_schema: schema/v3.json

json-yaml-validate-v2:
json-yaml-validate-meta:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -33,5 +33,5 @@ jobs:
uses: GrantBirki/[email protected]
with:
comment: "true"
base_dir: signalsets/v2/
json_schema: schema/v2.json
base_dir: meta/
json_schema: schema/status.json
26 changes: 26 additions & 0 deletions schema/status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"testers": {
"type": "object",
"patternProperties": {
"^[0-9]{4}$": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"onboarded": {
"type": "string",
"format": "date"
}
},
"required": ["username", "onboarded"]
}
},
"additionalProperties": false
}
},
"required": ["testers"]
}
125 changes: 0 additions & 125 deletions schema/v2.json

This file was deleted.

4 changes: 2 additions & 2 deletions schema/v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"items": {
"type": "object",
"properties": {
"hdr": { "type": "string", "minLength": 3, "maxLength": 3 },
"rax": { "type": "string", "minLength": 3, "maxLength": 3 },
"hdr": { "type": "string", "minLength": 3, "maxLength": 4 },
"rax": { "type": "string", "minLength": 2, "maxLength": 3 },
"fcm1": { "type": "boolean" },
"cmd": {
"type": "object",
Expand Down
2 changes: 0 additions & 2 deletions signalsets/v2/default.json

This file was deleted.

0 comments on commit b0b9599

Please sign in to comment.