User Tools

Site Tools


tanszek:oktatas:techcomm:json_schema

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tanszek:oktatas:techcomm:json_schema [2024/10/07 18:31] – created kneheztanszek:oktatas:techcomm:json_schema [2024/12/17 13:52] (current) knehez
Line 22: Line 22:
 **Explanation**: **Explanation**:
  
-- `nameand `emailare required.+  * ''name'' and ''email'' are required
 +  * ''age'' is optional but must be a non-negative integer if provided. 
 +  * ''email'' should be a valid email format.
  
-- `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. 
-The array must have at least one item. +  All items must be unique.
- +
-All items must be unique.+
  
 **Valid JSON Array**: **Valid JSON Array**:
Line 97: Line 93:
 **Explanation**: **Explanation**:
  
-If ''isEmployed'' is ''true'', ''employer'' must be provided. +  * If ''isEmployed'' is ''true'', ''employer'' must be provided. 
- +  If ''isEmployed'' is ''false'', ''reasonUnemployed'' must be provided.
-If ''isEmployed'' is ''false'', ''reasonUnemployed'' must be provided.+
  
 **Valid Example (Employed)**: **Valid Example (Employed)**:
tanszek/oktatas/techcomm/json_schema.1728325915.txt.gz · Last modified: 2024/10/07 18:31 by knehez