Skip to content

Matching on arrays of strings #303

@David-Chadwick

Description

@David-Chadwick

If a VC contains a property whose values are a set of strings, e.g.

foo = ["bar", "baz"]

then a presentation definition filter will need to specify one-of or any-of from the array of values e.g.

"path": [
	"$.foo"
],
"filter": {
	"type": "array",
	"items": {
		"type": "string"
	},
	"oneOf": ["foo", "abc"]
}

Unfortunately when the above PD has been entered into the OIDC4VP draft, there is a schema checking violation on the oneOf property (also anyOf gives a similar error). The authors of OIDC4VP feel that this is a problem with the PE specification, in that it is not precise enough about which schema validation rules (year, version) have to be used. Nor is there any indication of which tools exist in order to validate that any PD instance is a correct instance of the PE specification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions