status-go/appmetrics/validators.go
Shivek Khurana 79bf90e990
👮🏽‍♂️ Update validators and add a new event (#2189)
* Add extra event to capture other type of navigations, allow empty screen name, rename cofx to get rid of clj ns, update tests

* Some view ids are greater than 16 characters. Made it 32 to be safe.

* Tab navigation events occur outside nav, add a new validator for them

* Remove navigate to cofx event, capture screens on will focus, get rid of enum and make valid screens a string less than 32 characters

* Run make generate

* Fix test

* Bump version to 0.75.1
2021-04-12 17:55:53 +05:30

25 lines
596 B
Go

package appmetrics
var NavigateToCofxSchema = map[string]interface{}{
"type": "object",
"properties": map[string]interface{}{
"view_id": map[string]interface{}{
"type": "string",
"maxLength": 32,
},
"params": map[string]interface{}{
"type": "object",
"properties": map[string]interface{}{
"screen": map[string]interface{}{
"type": "string",
"maxLength": 32,
},
},
"additionalProperties": false,
"required": []string{"screen"},
},
},
"additionalProperties": false,
"required": []string{"view_id", "params"},
}