decentralized-identity/presentation-exchange

Optional constraint fields

Closed this issue · 6 comments

Is there any way other than using submission_requirements to support an optional field? e.g. middleName. Include it if you have it. It’d be somewhat unfortunate if optional fields aren’t supported in a way aside from using submission_requirements wherein two input_descriptor objects are provided for the same group and only 1 must be satisfied. 1 input_descriptor would include the optional field in its fields array and 1 would exclude it… thus creating support for optional fields (albeit janky and verbose)

@dtmcg @brentzundel @kimdhamilton I really think this is a necessary addition, and is backwards compatible.

yes, this makes sense. I wonder if we can reuse the required/preferred pattern here, and have required be default. Although I need to refresh my memory on whether that's applicable here

is this a duplicate of #375 ?

Yes, it's a dupe, and the PR closed both

addressed by #378