PE Schema Validation Problems

Issue #1439 resolved
David W Chadwick created an issue

Currently some non-trivial examples of presentation definitions from the DIF PE specification are causing OIDC schema validation to fail. One example is if a VC contains a set of values, and the PD tries to choose one of the set by using “oneOf” or “anyOf”. This issue has been raised in the DIF PE group (see https://github.com/decentralized-identity/presentation-exchange/issues/280 and https://github.com/decentralized-identity/presentation-exchange/issues/303 )

DIF say they are using the JSON schema defined in https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-02 which allows more complex constructs such “oneOf” and “anyOf”.

The current workaround for OIDC has been to use simpler examples in the OIDC specifications.

This issue is a placeholder to ensure that any problems with schema validation are resolved before the final specification is published

Comments (4)

  1. Kristina Yasuda

    David, could you please give us an update on this item? PE went to v2, but in the PE repo, issue 303 was closed, but issue 280 is still open. Has this been resolved or not?

  2. David W Chadwick reporter

    As I recall, 303 was closed because it was not deemed to be a bug in PE, but rather in the schema validation tool that was being used (i.e. the tool was not sufficiently enhanced to support oneOf or anyOf.

    280 has not been closed because there is an outstanding request on Torsten to provide an erroneous example.

  3. Log in to comment