-
Notifications
You must be signed in to change notification settings - Fork 273
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
fix(shell): fix schema requiring sidecar
property even though it is optional
#1839
Conversation
Package Changes Through 8e89fe3There are 6 changes which include cli with prerelease, deep-link with prerelease, dialog with prerelease, fs with prerelease, shell with prerelease, updater with prerelease Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
schema noob here: Is it possible to say that either cmd or sidecar is required? Because now only |
It is probably possible with a custom JsonSchema implementation, I don't think we can do it with the derive macro |
@FabianLars actually we could just use untagged enum, take a look and see if that's what you meant |
I don't have access to a computer until tomorrow so I can't check out the generated schema but I assume this is what I meant, or at least close enough x) |
Okay so I got my hands on my laptop for a minute 😂 It seems to work, cool. vscode just seems to think that args is always required though. Laptop is gone again so now I really can't test again until tomorrow but with just the args thing I don't think that's a problem |
alright, fixed that one as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i love you
… optional (tauri-apps#1839) * fix(shell): fix schema requiring `sidecar` property even though it is optional * fix clippy * make `cmd` and `sidecar` exclusive * make args optional * cleanup --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
… optional (tauri-apps#1839) * fix(shell): fix schema requiring `sidecar` property even though it is optional * fix clippy * make `cmd` and `sidecar` exclusive * make args optional * cleanup --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
No description provided.