-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add validation to JSON transformer #830
feat: add validation to JSON transformer #830
Conversation
Signed-off-by: Moriarty <[email protected]>
Thanks for all the feedback! |
needs a little bit of work still - not all test pass Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #830 +/- ##
==========================================
- Coverage 87.57% 87.57% -0.01%
==========================================
Files 463 465 +2
Lines 11083 11097 +14
Branches 1745 1753 +8
==========================================
+ Hits 9706 9718 +12
- Misses 1377 1379 +2
Continue to review full report at Codecov.
|
Signed-off-by: Moriarty <[email protected]>
a3e547e
to
19a8f48
Compare
Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
fa72646
to
29f4e6d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great addition @morrieinmaas! Left some notes mainly on the disabling of validation. The goal to integrate validation with transformation is to get rid of these hidden errors, so would be great if we could fix as much validation errors as possible
packages/core/src/decorators/transport/TransportDecorator.test.ts
Outdated
Show resolved
Hide resolved
Thanls for all the feedback @TimoGlastra. sorry hadn't managed to write up some more context. From running the tests it became clear the the sync check method doesn't validate as reliably as the async one. That resulted in some tests failed as they were. Was sort of a catch 22 situation when writing this last Friday. Also, I'll add more in detail to your comments above, but essentially I was a little unsure of how consistent with the previous implementation we want to keep it aka not introducing breaking changes. I'll have another fresh look. Maybe I was over-complicating things and missed the elegant way |
I'll have another go at it today to incorporate your suggestions |
I think the previous implementation has some issues so it's fine to introduce some breaking changes if they improve behaviour |
Also random question - I've had some tests failing locally that then worked on remote due to snapshot obsolete. How can I fix this? |
Signed-off-by: Moriarty <[email protected]>
move validation logic to MessageValidator Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
Can you share the error log? |
here is the entire output of yarn test. Those tests don't fail on remote. Not sure what to do about obsolete snapshots |
I think your environement got corrupted. To clean you can do the following to delete all indy wallets:
And as you don't have a postgres database running locally you can run the tests with:
Can you see if the errors still persist? |
Signed-off-by: Moriarty <[email protected]>
} catch (error) { | ||
expect(error).toMatchObject([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird this is losing all this data. If you solve this one error, will it give a new error? (i.e. it will deliver them one by one instead)
Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
…anform-validator Signed-off-by: Moriarty <[email protected]>
packages/core/src/modules/credentials/formats/CredentialFormatService.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
066556a
to
cee5211
Compare
Signed-off-by: Moriarty <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of work went into this PR, great work @morrieinmaas!
@blu3beri can you give a review to unblock or leave more feedback? |
haha puuh that's come a long way. thanks for all the feedback and assistance.🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unblocked.
closes #742
Signed-off-by: Moriarty [email protected]