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
Validate language-model mock output against the schema in OpenApiMockResponsePlugin #2039
OpenApiMockResponsePlugin (#2036) can generate mock bodies with a language model, but it checks only the top-level JSON type of the model's output. If the output breaks schema constraints (e.g. minimum, required, enum, pattern), it is still served as the mock.
Proposal: once OpenApiValidationPlugin (#2037) is merged, validate the model's output with its OpenApiSchemaValidator. If validation fails, fall back to the schema-based sample generator (and log why).
Activity