Closed babisRoutis closed 1 month ago
@babisRoutis Added a REST endpoint for validating MSO MDoc DeviceResponses. Please let me know of any comments.
@dzarras Reduced the scope of the PR and the related issue, in order to merge it sooner.
Was thinking that if the validation outcome is valid
we could return a list of documents where each "document" is a view of the mdoc. For instance:
docType
Displayable attributes: String, Numbers etc
That's a nice to have though.
@babisRoutis Ready for final review.
@dzarras Reduced the scope of the PR and the related issue, in order to merge it sooner.
Was thinking that if the validation outcome is
valid
we could return a list of documents where each "document" is a view of the mdoc. For instance:
docType
- a list of displayable attributes per namespace.
Displayable attributes: String, Numbers etc
That's a nice to have though.
@babisRoutis In case of validation success a simplified view of the successfully validated MDoc documents is now returned. e.g.:
[
{
"docType": "eu.europa.ec.eudi.pid.1",
"attributes": {
"eu.europa.ec.eudi.pid.1": [
"age_over_18"
]
}
}
]
Helpers:
X5CValidator
DocumentValidator
DeviceResponseValidator
Application: