-
Notifications
You must be signed in to change notification settings - Fork 38
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
Only show valid config properties as options #1445
Comments
Related: https://discord.com/channels/267292556709068800/332735075315744768/855995278385348629 Not sure if this issue is out of scope. I really do not want to parse wiki in order find out what are valid values for each property and I cant come up with a better approach right now. I wonder what @Aareksio would do in such a situation. |
Maybe @JustArchi or @Abrynos have a suggestion on how to handle this situation? |
You don't, if swagger doesn't provide a way to further validate something, you shouldn't do anything extra. Either you classify it as super important and we come to conclusion that we need to enhance our swagger schema to allow you to achieve that (as we did with |
I get a 400 in response with this message: "Configured CompleteTypesToSend property is invalid: Sticker". |
Show the message to the user and do nothing else. You're writing frontend, not backend. |
Yeah thats what we are doing currently. |
Apparently swagger supports min and max for various properties: https://swagger.io/docs/specification/data-models/data-types/ I might be able to make use of it to better define what values are valid for each prop, I'll mention you in appropriate commit if I do that @MrBurrBurr |
Monologue explaining how it works: https://ptb.discord.com/channels/267292556709068800/332735075315744768/859854787634004049 (eventually also on wiki)
What UI shows:
This setting on ASF wiki: https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Configuration#completetypestosend
The text was updated successfully, but these errors were encountered: