Skip to content

Instantly share code, notes, and snippets.

@1cadumagalhaes
Created October 4, 2021 20:52
Show Gist options
  • Save 1cadumagalhaes/072516db37c8393190a214ae3f403099 to your computer and use it in GitHub Desktop.
Save 1cadumagalhaes/072516db37c8393190a214ae3f403099 to your computer and use it in GitHub Desktop.
Exemplo de schema do Datalayer Collect
{
"$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