The specification for Record fields says that the type is
A JSON object defining a schema, or a JSON string naming a record definition (required).
AFAICT, the Java implementation allows for any named type.
The specification should be updated to state any named type is allowed or the Java implementation should restrict what can be used. The former seems less likely to disturb current users.