obj
fun obj(properties: Map<String, AirshipJsonSchema>? = null, required: List<String>? = null, description: String? = null): AirshipJsonSchema(source)
A JSON object with declared properties.
AirshipJsonSchema.obj(
properties = mapOf("id" to AirshipJsonSchema.string(), "score" to AirshipJsonSchema.integer()),
required = listOf("id", "score")
)Content copied to clipboard
Return
The schema.
Parameters
properties
The declared properties, or null to allow any.
required
Property names the model must always emit, or null to require none.
description
Optional description surfaced to the model.