Avoid copying output during basic validation

This commit is contained in:
2026-10-09 00:13:23 +00:00
parent 05fe13d80b
commit ed7c27324d
3 changed files with 45 additions and 24 deletions

View File

@@ -151,7 +151,8 @@ control into the rendered prompt. The
`internal/validate` provides validators backed by an operating-system
filesystem or an `fs.FS`. Invalid generated content is returned as a validation
result; inability to load, register, or compile a schema is an operational
error.
error. Basic validation checks body emptiness on the byte slice directly
instead of first making a response-sized string copy.
Every preparation operation creates one operation-local validation plan. None,
basic, and JSON modes retain the effective output contract without source