You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One option could be to support a ? at the end of the field name:
name: their name
age? (Int)
Would that mean that the value in the key can be null, or would it mean the key can be omitted entirely?
I prefer nulls and consistently shaped objects, but in JSON schema I believe not having something in the required field means the key can be missing - a nullable property (is that widely supported?) indicates it can be null.
I omitted optional field support in the original design - but that forces the model to hallucinate if a value is unavailable.
The text was updated successfully, but these errors were encountered: