This commit is contained in:
relikd
2024-04-02 21:54:37 +02:00
commit 8f04d673d9
119 changed files with 20136 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# Schema Definitions for ipatool-py
In this directory, JSON Schema Definition files are stored in `schema_defs`, with corresponding plist examples in `schema_examples`
## How to generate schema from plist
1. Convert plist to corresponding JSON, using either `plistlib` or online tools
2. Use https://www.liquid-technologies.com/online-json-to-schema-converter to convert JSON to schema
- You have to switch the `Array Rules` option to `List Validation`
3. Merge different request / response body's schema manually
- Usually the "required" field can help you merging the json schema
## Regenerate schema bindings
Run this in current folder:
```
python3 -m schema_defs
```