How to update / validate a schema in a file using curl

Maybe you need to do as follows:

curl -X POST localhost:8080/admin/schema/validate --data-binary '@schema.graphql'