isPropertyRequired

fun isPropertyRequired(schema: JsonSchema, propertyName: String): Boolean(source)

Checks if a property is required in the schema.

Return

true if the property is required, false otherwise

Parameters

schema

The schema definition

propertyName

The name of the property