foo was provided in the body, if not then look at another optional thing, and then finally use the default value of the schemaS.optionalToRequired and map the T | undefined to { value: T, provided: boolean }otherThing and the condition and inject them and use the result of that special schema in this specific scenario