NON_NULLABLE_REQUIRED

Non-strict mode: Only non-nullable parameters are marked as required.

Nullable parameters are excluded from the required list, allowing them to be omitted entirely. Use this when you want nullable parameters to be truly optional (not required with null value).

Example:

fun writeLog(level: String, exception: String? = null)

Generates:

{
"required": ["level"],
"properties": {
"level": { "type": "string" },
"exception": { "type": ["string", "null"] }
}
}

Properties

Link copied to clipboard
Link copied to clipboard