Dl/DataType: Difference between revisions

From stonehomewiki
Jump to navigationJump to search
Line 25: Line 25:
<b>Examples</b>:
<b>Examples</b>:
<pre><nowiki>
<pre><nowiki>
# This represent a "string" type
# This represent a "number" type
{
{
     id: "617b2e86-9698-4b99-8956-57ce99d8de39",
     id: "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
     type: "string"
     type: "number",
    description: "Represent a float number"
}
}


# This represent a structure which has 2 number member fields for "x" and "y".
# This represent a structure which has 2 number member fields for "x" and "y".
{
{
     id: "617b2e86-9698-4b99-8956-57ce99d8de39",
     id: "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
     type: "object",
     type: "object",
     properties: {
     properties: {
         "x": {
         "x": {
             type: "number",
             type: {"$ref": "#/$defs/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"},
            description: "The x coordinate value, measured in miles"
         },
         },
         "y": {
         "y": {
             type: "number",
             type: {"$ref": "#/$defs/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"},
            description: "The y coordinate value, measured in miles"
         }
         }
     }
     },
    description: "Represent a point on a two dimensional canvas"
}
}


# This represent an array of structure which has 2 number member fields for "x" and "y".
# This represent an array of structure which has 2 number member fields for "x" and "y".
{
{
     id: "617b2e86-9698-4b99-8956-57ce99d8de39",
     id: "11111111-1111-1111-1111-111111111111",
     type: "array",
     type: "array",
     items: {
     items: {
         id: "617b2e86-9698-4b99-8956-57ce99d8de3f",
         "$ref": "#/$defs/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
        type: "object",
        properties: {
            "x": {
                type: "number",
            },
            "y": {
                type: "number",
            }
        }
     }
     }
    description: "Represent a series of points on a two dimensional canvas"
}
}
</nowiki></pre>
</nowiki></pre>
</div>
</div>

Revision as of 05:21, 23 August 2023

Data Lake Knowledge Center | Models

Introduction

Considerations