Updates the implementation of Zod validation with unknown options for the following commands:
- adaptivecard send
- graph openextension add
- graph openextension set
What changes:
- Use
.passthrough() on zod schema objects. (the passthrough function is explicitly for the usecase of unknown options. We werent using it, so I updated the code of some commands to use it.)
- Use
optionsUtils.getUnknownOptions(args.options, zod.schemaToOptions(this.schema!)) to get unknown options, otherwise all options are returned
Updates the implementation of Zod validation with unknown options for the following commands:
What changes:
.passthrough()on zod schema objects. (the passthrough function is explicitly for the usecase of unknown options. We werent using it, so I updated the code of some commands to use it.)optionsUtils.getUnknownOptions(args.options, zod.schemaToOptions(this.schema!))to get unknown options, otherwise all options are returned