refsOf

fun refsOf(schema: Map<String, Any?>): List<String>

The $defs references an inline schema holds, its own, its items' and its alternatives', in order.