Skip to content
This repository was archived by the owner on Nov 27, 2019. It is now read-only.

Conversation

AhmetTanakol
Copy link
Contributor

Added ajv custom error messages

Copy link
Contributor

@edgarmueller edgarmueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add or modify a test that explicitly checks for the changed error messages?

@coveralls
Copy link

coveralls commented Aug 1, 2018

Pull Request Test Coverage Report for Build 14

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 11: 0.0%
Covered Lines: 23
Relevant Lines: 23

💛 - Coveralls

@AhmetTanakol
Copy link
Contributor Author

Updated

Copy link
Contributor

@edgarmueller edgarmueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error messages regarding type seem to be wrong.

'scope': 'Control scope should match pattern "^#\\/properties\\/{1}"',
'suggestion': 'Control suggestion should be array',
'options': 'Control options should be object',
'label': 'Control label should be string,boolean or label object'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add whitespace after comma

},
'required': {
'scope': 'Control should have an object property "scope"',
'type': 'Control should have an object property "type"'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't type a string -> remove 'object'?

'type': 'Control should have an object property "type"'
},
'additionalProperties': 'Control should not have properties ' +
'other than type,label,scope,options,suggestion and rule'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add whitespace after each comma

},
'required': {
'elements': 'Root should have an array property "elements"',
'type': 'Root should have an object property "type"'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be of type string

'type': 'Root should have an object property "type"'
},
'additionalProperties': 'Root should not have properties ' +
'other than type,elements,label and rule'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace after each comma

@AhmetTanakol AhmetTanakol changed the title add custom error messages for uischema validation Add custom error messages for uischema validation Aug 2, 2018
@edgarmueller edgarmueller merged commit 3e28c98 into eclipsesource:master Aug 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants