Support for nested selective disclosure by using a flattened content model. This PR also has a breaking change on createPresentation call.
not supported - selective disclosure of array values
refactored the function signature to accept an options object. This would allow you to easily omit specific properties and make the function more extensible in the future.
In the call above, we can easily omit selectedAttributes. If you want to include selectedAttributes, you can add that property to the options object.
This structure allows for much cleaner function calls, especially when a function has several parameters, and some of them are optional. We should refactor other calls to follow this model.
Support for nested selective disclosure by using a flattened content model. This PR also has a breaking change on
createPresentation
call. not supported - selective disclosure of array valuesModified createPresentation function:
We can now call the function with just the properties you need. It makes the call more readable and easily extensible.
In the call above, we can easily omit selectedAttributes. If you want to include selectedAttributes, you can add that property to the options object.
This structure allows for much cleaner function calls, especially when a function has several parameters, and some of them are optional. We should refactor other calls to follow this model.