Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disclosure frame does not support nested disclosures for array items. #3

Open
TimoGlastra opened this issue Nov 21, 2023 · 0 comments

Comments

@TimoGlastra
Copy link
Contributor

I get a TypeScript error with the following disclosure frame:

.withDisclosureFrame({
            __decoyCount: 2,
            users: [{ name: true }, true, false],
            user: {
                __decoyCount: 3,
                dateOfBirth: true,
                name: true,
                lastName: false
            },
            license: false
        })

It seems to expect only boolean values for the users array, but it is possible according to the spec to selectively disclose the name property within an array as well.

I think this might be related to #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant