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
{{ message }}
Repository navigation
GraderMulti.graders models one grader instead of a named dictionary #580
bugSomething isn't workingdocumentationImprovements or additions to documentationreproReproduced; investigation details recorded in LinearspecificationOpenAPI contract, authored schema, or specification publication defects.
Mirrors openai-java#647, which reports a generated MultiGrader request failing with 400: Invalid type for 'graders.input': expected an object, but got a string instead.
Specification mismatch
In the current public specification, GraderMulti.graders is a oneOf containing individual StringCheck, TextSimilarity, Python, ScoreModel, and LabelModel graders. It therefore describes a single grader object.
The combined-graders guide instead defines graders as an object whose keys name constituent graders. calculate_output refers to those keys. For example:
The generated SDK currently follows the single-grader union, so the source example serializes the grader fields directly under graders and the service treats input as a named grader with an invalid string value.
There is also an inconsistent GraderMulti example in the specification: it uses an array, which matches neither the single-grader schema nor the documented named-map contract.
Expected correction
Describe graders as an object whose additional properties use the supported individual-grader union, and replace the array example with a named map whose keys match calculate_output. Regenerate the published schema and SDK models. Preserve the original SDK reproduction as a validation case.
Confirmed. The five existing grader variants belong under graders.additionalProperties, with graders an object keyed by the names referenced in calculate_output; the documented array and mismatched formula are incorrect.
A fresh check of public revision 7de0436 still accepts the erroneous flat shape and rejects a valid named dictionary. The upstream correction retains the five variants and fixes the keyed example/formula. It remains under review, with SDK compatibility and publication still outstanding; no published schema or released SDK fix is claimed. The original Java report now has a contract explanation, and both reports should remain open until publication and consumer validation are complete.
bugSomething isn't workingdocumentationImprovements or additions to documentationreproReproduced; investigation details recorded in LinearspecificationOpenAPI contract, authored schema, or specification publication defects.
Activity
markstuart-oai commentedon Sep 22, 2026
Confirmed. The five existing grader variants belong under
graders.additionalProperties, withgradersan object keyed by the names referenced incalculate_output; the documented array and mismatched formula are incorrect.A fresh check of public revision 7de0436 still accepts the erroneous flat shape and rejects a valid named dictionary. The upstream correction retains the five variants and fixes the keyed example/formula. It remains under review, with SDK compatibility and publication still outstanding; no published schema or released SDK fix is claimed. The original Java report now has a contract explanation, and both reports should remain open until publication and consumer validation are complete.