In this article
Test a scalar intersection with accepted and rejected values, then validate the assembled model response independently.
The b12254 pre-release fixes JSON Schema conversion where allOf combined with a plain type could generate an empty-object grammar. The meaningful regression is the language the grammar accepts. A client should distinguish the schema intersection from a response that happens to parse as JSON.
Interpret allOf as an intersection
Every subschema in allOf applies to the same instance. Combining an integer type with compatible bounds should produce integers satisfying all those bounds. It does not turn the instance into an object. Build the expected accepted set on paper before calling the converter. Include a negative integer, a valid interior value and a boundary value.
Make the former failure observable
Send the same schema to both revisions and save the generated grammar when the interface exposes it. Ask the model for a permitted number. Check whether the old path admits only an empty object and whether the candidate admits the intended scalar. Keep the schema envelope fixed so placement issues do not obscure the conversion test.
Exercise an unsatisfiable combination
Add a separate schema with an empty intersection, such as incompatible numeric bounds. Record whether conversion rejects it clearly or otherwise follows documented behavior. The review also records a limit where bounds attached to a number branch may be lost. Check that case explicitly instead of inferring complete bound support from the fix. Treat compilation errors and a generated value failing schema validation as different outcomes.
Keep application validation
Validate the final complete output with the JSON Schema implementation used by the application. Include supported keywords only when assessing the converter’s advertised contract, and record unsupported ones explicitly. The acceptance fixture should pin schema, runtime and validation version. That makes later grammar changes observable before a consumer receives the wrong type.
Primary sources
Related reading
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.