Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Oct 27, 2024
1 parent 56075f0 commit 82bfae7
Showing 1 changed file with 61 additions and 26 deletions.
87 changes: 61 additions & 26 deletions specification/typeschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,32 +60,41 @@
}
}
},
"MapDefinitionType": {
"description": "A map represents a map/dictionary with variable key/value entries of the same type.",
"CollectionDefinitionType": {
"description": "Base collection type",
"type": "struct",
"parent": {
"type": "reference",
"target": "DefinitionType"
},
"base": true,
"properties": {
"schema": {
"description": "",
"type": "reference",
"target": "PropertyType"
}
},
"discriminator": "type",
"mapping": {
"MapDefinitionType": "map",
"ArrayDefinitionType": "array"
}
},
"MapDefinitionType": {
"description": "Represents a map which contains a dynamic set of key value entries of the same type",
"type": "struct",
"parent": {
"type": "reference",
"target": "CollectionDefinitionType"
}
},
"ArrayDefinitionType": {
"description": "An array represents an array/list with variable entries of the same type.",
"description": "Represents an array which contains a dynamic list of values of the same type",
"type": "struct",
"parent": {
"type": "reference",
"target": "DefinitionType"
},
"properties": {
"schema": {
"type": "reference",
"target": "PropertyType"
}
"target": "CollectionDefinitionType"
}
},
"PropertyType": {
Expand All @@ -108,23 +117,40 @@
},
"discriminator": "type",
"mapping": {
"MapPropertyType": "map",
"ArrayPropertyType": "array",
"StringPropertyType": "string",
"IntegerPropertyType": "integer",
"NumberPropertyType": "number",
"BooleanPropertyType": "boolean",
"MapPropertyType": "map",
"ArrayPropertyType": "array",
"AnyPropertyType": "any",
"GenericPropertyType": "generic",
"ReferencePropertyType": "reference"
}
},
"StringPropertyType": {
"ScalarPropertyType": {
"description": "Base scalar property type",
"type": "struct",
"parent": {
"type": "reference",
"target": "PropertyType"
},
"base": true,
"discriminator": "type",
"mapping": {
"StringPropertyType": "string",
"IntegerPropertyType": "integer",
"NumberPropertyType": "number",
"BooleanPropertyType": "boolean"
}
},
"StringPropertyType": {
"description": "Represents a string value",
"type": "struct",
"parent": {
"type": "reference",
"target": "ScalarPropertyType"
},
"properties": {
"format": {
"description": "Optional describes the format of the string. Supported are the following types: date, date-time and time. A code generator may use a fitting data type to represent such a format, if not supported it should fall back to a string.",
Expand All @@ -133,62 +159,70 @@
}
},
"IntegerPropertyType": {
"description": "Represents an integer value",
"type": "struct",
"parent": {
"type": "reference",
"target": "PropertyType"
"target": "ScalarPropertyType"
}
},
"NumberPropertyType": {
"description": "Represents a float value",
"type": "struct",
"parent": {
"type": "reference",
"target": "PropertyType"
"target": "ScalarPropertyType"
}
},
"BooleanPropertyType": {
"description": "Represents a boolean value",
"type": "struct",
"parent": {
"type": "reference",
"target": "PropertyType"
"target": "ScalarPropertyType"
}
},
"MapPropertyType": {
"description": "A map represents a map/dictionary with variable key/value entries of the same type. The code generator uses the native map/dictionary type of the programming language.",
"CollectionPropertyType": {
"description": "Base collection property type",
"type": "struct",
"parent": {
"type": "reference",
"target": "PropertyType"
},
"base": true,
"properties": {
"schema": {
"description": "",
"type": "reference",
"target": "PropertyType"
}
},
"MapPropertyType": {
"description": "Represents a map which contains a dynamic set of key value entries of the same type",
"type": "struct",
"parent": {
"type": "reference",
"target": "CollectionPropertyType"
}
},
"ArrayPropertyType": {
"description": "An array represents an array/list with variable entries of the same type. The code generator uses the native array/list type of the programming language.",
"description": "Represents an array which contains a dynamic list of values of the same type",
"type": "struct",
"parent": {
"type": "reference",
"target": "PropertyType"
},
"properties": {
"schema": {
"type": "reference",
"target": "PropertyType"
}
"target": "CollectionPropertyType"
}
},
"AnyPropertyType": {
"description": "Represents an any value which allows any kind of value",
"type": "struct",
"parent": {
"type": "reference",
"target": "PropertyType"
}
},
"GenericPropertyType": {
"description": "Represents a generic value which can be replaced with a dynamic type",
"type": "struct",
"parent": {
"type": "reference",
Expand All @@ -202,6 +236,7 @@
}
},
"ReferencePropertyType": {
"description": "Represents a reference to a definition type",
"type": "struct",
"parent": {
"type": "reference",
Expand Down

0 comments on commit 82bfae7

Please sign in to comment.