oneOfProperty

Retrieves the oneOf property definition associated with the specified property name.

Return

The corresponding OneOfPropertyDefinition if the property exists and is a oneOf, or null if no such property exists or the property is not a oneOf.

Parameters

name

The name of the property to fetch from the object definition.