Page 1 of 1
IconData icon_size not marked optional
Posted: Fri Jan 12, 2024 3:20 am
by BrainGamer_
The
icon_size property on
IconData should be marked optional since it is not always required (as mentioned in its description)
Re: IconData icon_size not marked optional
Posted: Mon Jan 15, 2024 12:54 pm
by Bilka
To summarize what we talked about on discord a few days ago:
There is no system to indicate conditionally mandatory properties so we're doing best guesses at the moment as to whether marking a conditional property as optional is better or not.
Keeping it mandatory means that
FMTK will always complain if you use the outer size instead of the inner one.
Marking it optional means that FMTK never complain even when the outer icon size is missing.
This means this is a game of tradeoffs, false positive vs false negative.
I've considered for a few days and will mark the inner icon_size optional for now (so do this request). This is mostly based on consistency with other conditionally mandatory properties. So, fixed for the next release (1.1.102).