Skip to content
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

Support returning failed input descriptors on cred application validation #244

Merged
merged 11 commits into from
Oct 27, 2022

Conversation

decentralgabe
Copy link
Member

No description provided.

* origin/main:
  fix bug (#242)
  adding new error response object (#240)

# Conflicts:
#	credential/manifest/model.go
#	credential/manifest/model_test.go
#	error/response.go
#	error/response_test.go
// The Credential Application object MUST contain a presentation_submission property IF the related Credential
// Manifest contains a presentation_definition. Its value MUST be a valid Presentation Submission:
if cm.PresentationDefinition.IsEmpty() {
return
Copy link
Contributor

Choose a reason for hiding this comment

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

good call,

I wonder if there is an edge case where if there is not a PresDef but the presentation submission exists (for some reason?) and then it is invalid

Copy link
Member Author

Choose a reason for hiding this comment

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

great point - will add a check

@@ -11,7 +11,7 @@ type (
)

const (
ApplicationError Type = "ApplicationError"
ApplicationError Type = "Valid"
Copy link
Contributor

Choose a reason for hiding this comment

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

do you want to rename ApplicationError to ValidError?

Copy link
Member Author

Choose a reason for hiding this comment

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

whoops, will revert

@decentralgabe decentralgabe merged commit 50f3596 into main Oct 27, 2022
@decentralgabe decentralgabe deleted the fix-errs branch October 27, 2022 00:30
@decentralgabe decentralgabe restored the fix-errs branch October 27, 2022 00:37
@decentralgabe decentralgabe deleted the fix-errs branch October 27, 2022 00:38
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.

None yet

2 participants