tanszek:oktatas:techcomm:json_schema
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tanszek:oktatas:techcomm:json_schema [2024/10/07 18:31] – created knehez | tanszek:oktatas:techcomm:json_schema [2024/12/17 13:52] (current) – knehez | ||
---|---|---|---|
Line 22: | Line 22: | ||
**Explanation**: | **Explanation**: | ||
- | - `name` and `email` are required. | + | * '' |
+ | * '' | ||
+ | * '' | ||
- | - `age` is optional but must be a non-negative integer if provided. | + | ==== Valid Example for this Schema: |
- | + | ||
- | - `email` should be a valid email format. | + | |
- | + | ||
- | #### Valid Example for this Schema: | + | |
<sxh json> | <sxh json> | ||
{ | { | ||
Line 52: | Line 50: | ||
This schema defines an array where: | This schema defines an array where: | ||
- | - Items must be strings. | + | * Items must be strings. |
- | + | | |
- | - The array must have at least one item. | + | |
- | + | ||
- | - All items must be unique. | + | |
**Valid JSON Array**: | **Valid JSON Array**: | ||
Line 97: | Line 93: | ||
**Explanation**: | **Explanation**: | ||
- | - If '' | + | * If '' |
- | + | | |
- | - If '' | + | |
**Valid Example (Employed)**: | **Valid Example (Employed)**: |
tanszek/oktatas/techcomm/json_schema.1728325915.txt.gz · Last modified: 2024/10/07 18:31 by knehez