$ref needs to be under a schema:
@@ -129,6 +129,7 @@ paths:
responses:
200:
description: The Matrix User IDs found with the given parameters.
+ schema:
$ref: ../application-service/definitions/schema/user_batch.yaml
404:
description: The Matrix User ID was not found
