Initial
This commit is contained in:
18
src_mac/ipatool-py/reqs/schemas/README.md
Executable file
18
src_mac/ipatool-py/reqs/schemas/README.md
Executable 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
|
||||
```
|
||||
Reference in New Issue
Block a user