File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 * s.object(props,desc?) ObjectSchema; s.optional(inner) marks field optional; use for fixed-key shapes
3232 * s.record(valSchema,desc?) RecordSchema keyed by string; use for open-ended key→value maps
3333 * s.enum(...values|values,desc) EnumSchema
34- * s.unknown() unconstrained JSON
34+ * s.unknown unconstrained JSON; call as value or s.unknown("description")
3535 * p`...` PromptBuilder template tag; interpolates PromptIntent|string|PromptBuilder
3636 * p.bash(cmd,opts?) PromptIntent bash execution declaration (not run in-process)
3737 * p.read(path,opts?) PromptIntent file read declaration
@@ -200,7 +200,14 @@ export const s = {
200200 boolean : createTypedPrimitiveSchema < BooleanSchema > ( "boolean" ) ,
201201 /** Schema for the JSON `null` literal. Call as `s.null` or `s.null("description")`. */
202202 null : createTypedPrimitiveSchema < NullSchema > ( "null" ) ,
203- /** Schema for an unconstrained JSON value. Serializes to an empty schema object. */
203+ /**
204+ * Schema for an unconstrained JSON value. Serializes to an empty schema object.
205+ * Call as `s.unknown` or `s.unknown("description")`.
206+ *
207+ * @example
208+ * s.unknown // any JSON value
209+ * s.unknown("raw API payload") // any JSON value with description
210+ */
204211 unknown : createUnknownSchema ( ) ,
205212 /**
206213 * Schema for a homogeneous array.
You can’t perform that action at this time.
0 commit comments