Incorrect error total in application status bar
The number of errors displayed in the bottom-most message bar is not properly calculated (see snapshot).
Steps to reproduce:
- Copy this json, which generates 1 error:
{
"firstName" : "value1"
"lastName" : "aaa"
}
- Copy this schema, which generates 2 warnings:
{
"title": "Example Schema",
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"typ": "string"
},
"age": {
"description": "Age in years",
"type": "string",
"minimu": 0
}
},
"required": ["firstName", "lastName"]
}
- The total of messages in the bottom bar is 1, instead of the expected 3
Also, with the same example documents, replacing the keyword 'string' with an invalid value adds, as expected, 1 error to the message bar of the schema editor. Meanwhile the bottom bar will display 4 (which is correct) but won't be expandable, so it won't be possible to see the total of messages.