Maybe you need to do as follows:
curl -X POST localhost:8080/admin/schema/validate --data-binary '@schema.graphql'