WRITE · TRACE · UNDERSTAND
Validate a closed structured-output schema without coercion
Return ordered path errors from root $.
Read lesson: Validate a closed structured-output schema without coercion →
Your experiment
Return ordered path errors from root $. Support only type (object,array,string,integer,number,boolean,null), enum, closed-object properties/required/additionalProperties=False, array items/maxItems, string maxLength. Unknown or inapplicable schema keywords raise ValueError before checking data. Object children visit sorted keys, missing requirements first; arrays visit index order. Errors use :type,:enum,:missing,:extra,:length. Numeric booleans are not integers/numbers and numbers must be finite. enum uses exact Python type and equality. Omitted additionalProperties means closed. This is an explicit JSON-like subset, not a general JSON Schema implementation.
Python runs in your browser. Your draft stays on this device.
What to look for
Review schema-version compatibility and unsupported vocabulary. Structural validity alone does not establish permission, factual correctness or safe execution.
Watch your code work
Ready to experimentWrite a solution or load the worked answer, then choose Trace & check.
Step through arrays, variables and training curves produced by your own Python.
