Skip to content

feat(dpp): better json schema error messages for data contracts - #1175

Closed
pauldelucia wants to merge 10 commits into
dashpay:v0.25-devfrom
pauldelucia:v0.25-dev
Closed

pauldelucia wants to merge 10 commits into
dashpay:v0.25-devfrom
pauldelucia:v0.25-dev

Conversation

@pauldelucia

Copy link
Copy Markdown
Member

Issue being fixed or feature implemented

Better error messages when data contract validation hits a JsonSchemaError

What was done?

Add "error_message" field to JsonSchemaErrorData that stores messages from jsonschema library. Link the previously unused "error_summary" field from JsonSchemaError to JsonSchemaErrorData "error_message". Change error message format for JsonSchemaError.

How Has This Been Tested?

Works when used with dashpay/data-contract-creator

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants