hasProperty

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

Checks if a schema has a property with the specified name.

Return

true if the property exists, false otherwise

Parameters

schema

The schema definition to check

propertyName

The name of the property