Optional Input param not set to default, how to deal with that?
Hi,
Am I wrong in assuming that setting an input parameter of an api (includeCustomer) to not required and setting the default value (in this case to false) should still create an input parameter includeCustomer = false? If so, then that functionality seems to be broken.
If my assumption is wrong, what is a nice way to check if the input exists and if it doesn't how to deal with that?
Answers
-
Hi @Joonix it should take the default value of false in this case. Are you saying it's not getting set to the default value of false?
-
Sorry @Michael Udinski wanted to make a video to show you the issue, but can't reproduce it anymore… it all works as expected.. that is a good thing!
-
Ah ok! Glad it's working 🙂 - don't hesitate to reach out if you run into any weirdness again, we want to know about it!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback