Dl/DataType: Difference between revisions
From stonehomewiki
Jump to navigationJump to search
Stonezhong (talk | contribs) |
Stonezhong (talk | contribs) |
||
| Line 6: | Line 6: | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
<big><b>A DataType object describe the schema of nested data.</b></big> | <big><b>A DataType object describe the schema of nested data.</b></big> | ||
We follow the [https://json-schema.org/ JSON Schema] specification to represent types. | |||
<b>Fields</b> | <b>Fields</b> | ||
| Line 12: | Line 14: | ||
Primary key | Primary key | ||
type: str | type: str | ||
The type of the data. For example: "int", "number", "object" | The type of the data. For example: "int", "number", "object". | ||
properties: Optional[dict] | properties: Optional[dict] | ||
If type is "object", this field list all properties. | If type is "object", this field list all properties. | ||