The verified claims spec is difficult to implement in typed languages.
The verified claims requested from a user. Array of claim types or Claims Specs for self signed claims eg: ["name", {type: "email", essential: true, iss: [{did: 'did:web:uport.claims'}]}]
Having an array of either String or Object is fine in JS but is a nightmare to serialize/deserialize in typed languages.
Not only that, but the logic needed to parse the request gets more complicated and is not necessarily backwards compatible.
Since this is not widespread it may be worth using a different field for the verified claim query in the request instead of complicating the logic of existing fields and breaking current implementations.
The verified claims spec is difficult to implement in typed languages.
Having an array of either
StringorObjectis fine in JS but is a nightmare to serialize/deserialize in typed languages.Not only that, but the logic needed to parse the request gets more complicated and is not necessarily backwards compatible.
Since this is not widespread it may be worth using a different field for the verified claim query in the request instead of complicating the logic of existing fields and breaking current implementations.