Created
October 4, 2021 20:52
-
-
Save 1cadumagalhaes/072516db37c8393190a214ae3f403099 to your computer and use it in GitHub Desktop.
Exemplo de schema do Datalayer Collect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "", | |
"title": "Schema example", | |
"array": { | |
"$id": "#/properties/schema", | |
"type": "array", | |
"items": [ | |
{ | |
"type": "object", | |
"properties": { | |
"event": { | |
"type": "string", | |
"enum": ["teste"] | |
}, | |
"key1": { | |
"type": "object", | |
"properties": { | |
"key1_sub1": { | |
"type": "number", | |
"enum": [10] | |
}, | |
"key1_sub2": { | |
"type": "string", | |
"pattern": "teste|test|.*" | |
}, | |
"key1_sub3": { | |
"type": "string", | |
"enum": ["producao"] | |
}, | |
"key1_sub4": { | |
"type": "boolean", | |
"enum": "desktop|mobile|msite" | |
} | |
}, | |
"required": ["key1_sub1", "key1_sub2", "key1_sub3", "key1_sub4"] | |
} | |
}, | |
"required": ["event"] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment