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

Add JSON schemas #176

Merged
merged 10 commits into from
Nov 20, 2024
Merged

Add JSON schemas #176

merged 10 commits into from
Nov 20, 2024

Conversation

will-v-pi
Copy link

Add JSON schemas for the JSON inputs used.

Currently the URLs point to the jsonschema branch - these should be changed to the develop branch once merged.

Fixes #172

@lurch lurch linked an issue Nov 15, 2024 that may be closed by this pull request
README.md Outdated Show resolved Hide resolved
json/default-pt.json Outdated Show resolved Hide resolved
@lurch
Copy link
Contributor

lurch commented Nov 15, 2024

Should one of these schema files contain all the info from section 13.9 of the RP2350 datasheet, or is this the wrong place for that?

@will-v-pi
Copy link
Author

Should one of these schema files contain all the info from section 13.9 of the RP2350 datasheet, or is this the wrong place for that?

I think this is the wrong place for that - that section of the datasheet is probably the best place for that information, as picotool should just handle all the redundancy settings etc for the predefined values without issue when reading/writing OTP.

Fix sample-...json file references in readme

Use `$defs` for pt permissions

Fix typos
Both must be specified in the JSON file, as they get written together
Only 4 values are actually allowed
"description": "Value to write",
"type": ["array", "string", "integer"],
"pattern": "^0x[0-9a-fA-F]{1,6}$",
"items": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess items here could also be a $ref, but I'll let you decide if it's worth it or not.

@lurch
Copy link
Contributor

lurch commented Nov 19, 2024

@will-v-pi Don't forget to update the schema URLs before hitting the big green Merge button 😄

@will-v-pi will-v-pi merged commit fb85aca into develop Nov 20, 2024
35 checks passed
@will-v-pi will-v-pi deleted the jsonschema branch November 20, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document schema for all JSON file arguments
3 participants