covenix / ContractResponseSchema
Variable: ContractResponseSchema
constContractResponseSchema:ZodObject<{file:ZodOptional<ZodObject<{contentType:ZodString; },$strip>>;headers:ZodOptional<ZodRecord<ZodString,ZodType<SchemaNode,unknown,$ZodTypeInternals<SchemaNode,unknown>>>>;schema:ZodOptional<ZodType<SchemaNode,unknown,$ZodTypeInternals<SchemaNode,unknown>>>;sse:ZodOptional<ZodObject<{schema:ZodOptional<ZodType<SchemaNode,unknown,$ZodTypeInternals<SchemaNode,unknown>>>; },$strip>>; },$strip>
Defined in: src/contract.ts:185
One declared response. Exactly one body kind is present (a JSON schema, a file, or an sse stream); headers annotate it. A status with no body (e.g. 204) has none set. Policy — how a client surfaces success vs error — is left to the generator; the contract only records the facts.
