Making specific fields optional in a schema definition
Is there some way to do a
And I want the following result:
So either specify which fields may be optional, or specify which should stay required. Currently I'm doing the following, but I thought there may be a cleaner way:
partial or required but only for specific fields? For example, I'm having:And I want the following result:
So either specify which fields may be optional, or specify which should stay required. Currently I'm doing the following, but I thought there may be a cleaner way:
