FunctionCallValidationSchema

data class FunctionCallValidationSchema(val raw: JsonObject)

The JSON Schema a catalog gives for one function's wire-level FunctionCall.

This is kept as raw rather than decoded into a Kotlin model of JSON Schema. Writing a schema validator for Kotlin Multiplatform was ruled out as being the size of the whole renderer; what the function-call checker actually needs from a definition is the handful of keywords surfaced below, read off the raw object.

Constructors

Link copied to clipboard
constructor(raw: JsonObject)

Properties

Link copied to clipboard
val allOf: List<JsonObject>?

The composed branches of an allOf-shaped definition, if this is one.

Link copied to clipboard
val argsSchema: JsonObject?

The JSON Schema for this function's args, if it declares any.

Link copied to clipboard

The function's name, from properties.call.const. Null for an allOf-shaped definition.

Link copied to clipboard
val raw: JsonObject
Link copied to clipboard

The keys the call object must carry, or empty when the definition omits required.