Closed hrehman-sphereon closed 2 years ago
public withProfiles(profiles: string | Profile | Array<Profile>): OPBuilder {
if(typeof profiles === "string") {
this.withProfileStr(profiles);
} else if (profiles instanceof Profile) {
this.addProfile(profiles as unknown as Profile);
} else if (Array.isArray(profiles)) {
this.withProfilesList(profiles);
}
return this;
}
profiles instanceof Profile
.... actually have to be implemented like so ... Array.isArray(profiles)
This does not seem an elegant solution.
This document is not a specification, but a profile. It outlines existing specifications required for implementations to interoperate among each other.
Quoted from : https://identity.foundation/jwt-vc-presentation-profile/
I think the word "profile" does work... do you have a better word in mind ?
Codecov Report
81.25% <15.78%> (-1.90%)
Flags with carried forward coverage won't be shown. Click here to find out more.
67.18% <0.00%> (-18.82%)
92.45% <0.00%> (-3.63%)
71.95% <0.00%> (-14.82%)
87.80% <33.33%> (-2.07%)
100.00% <100.00%> (ø)
100.00% <100.00%> (ø)
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more