Skip to content

Commit

Permalink
merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
woutslakhorst committed Oct 25, 2023
1 parent 2fdccff commit 561c238
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions vcr/pe/submission.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,6 @@ import (
v2 "github.com/nuts-foundation/nuts-node/vcr/pe/schema/v2"
)

// PresentationSubmission describes how the VCs in the VP match the input descriptors in the PD
type PresentationSubmission struct {
// Id is the id of the presentation submission, which is a UUID
Id string `json:"id"`
// DefinitionId is the id of the presentation definition that this submission is for
DefinitionId string `json:"definition_id"`
// DescriptorMap is a list of mappings from input descriptors to VCs
DescriptorMap []InputDescriptorMappingObject `json:"descriptor_map"`
}

// InputDescriptorMappingObject
type InputDescriptorMappingObject struct {
Id string `json:"id"`
Path string `json:"path"`
Format string `json:"format"`
}

// ParsePresentationSubmission validates the given JSON and parses it into a PresentationSubmission.
// It returns an error if the JSON is invalid or doesn't match the JSON schema for a PresentationSubmission.
func ParsePresentationSubmission(raw []byte) (*PresentationSubmission, error) {
Expand Down

0 comments on commit 561c238

Please sign in to comment.