In this article
A documented default is not evidence that a generic schema validator inserted that value into an omitted request field.
Required checks presence in an object
The required keyword in JSON Schema checks whether named properties occur in an object. Describing a property and providing its default are separate schema operations. A declaration can explain a field without requiring the caller to supply it.
For a model request, this distinction affects parameters such as generation settings. A client reading the documentation needs to know whether omission is permitted and what the application does afterward. Validation of the submitted object does not itself answer the second question.
Default is an annotation, not an insertion command
The JSON Schema annotation guide states that default is not used to fill missing values during validation. Documentation or form-generation tools can use it as a hint, but a generic validator need not mutate the input object.
A proposed gateway preserves the difference between submitted values and values its application explicitly resolves. Otherwise an operator can believe a documented generation default reached the engine when no component actually supplied it, or mistake an SDK-inserted value for an explicit caller choice.
Framework defaults have runtime behavior
Pydantic documents its own default handling and a separate option for validating default values. This is framework behavior beyond merely recognizing a default annotation in an arbitrary JSON Schema document.
Do not infer that behavior for another validator or language client. A model class can insert a value while an independent schema checker only accepts the original object. The two components may agree that input is valid while forwarding different effective requests downstream.
Default changes can alter omitted requests
Changing an application’s default can change the behavior of a request whose supplied fields are identical. Conversely, a client that materializes an old default can preserve earlier behavior while a client leaving the field absent adopts the new one.
A proposed compatibility note identifies the effective-default owner: server, SDK, gateway or caller. It also states whether the default is stable for a model revision. This avoids treating a schema-only documentation update as the whole operational contract when an application layer controls the actual value.
Review the resolved input as well as the schema
A useful review includes omitted fields, explicitly supplied values and a default that would fail the field’s own constraints. Inspect which component inserts and validates each effective value before handing it to the engine.
The goal is a traceable path from caller input through validation and explicit default resolution. Keeping those steps visible explains why a schema can be correct while the application still receives an unexpected setting, without promising that one schema keyword configures every participating client and service.
Primary references
JSON Schema validation vocabulary.
JSON Schema default annotation.
Related explanations: Schema conformance; Schema conversion boundaries.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.