There is an unofficial JSON schema that can be used to validate config.yml files, except it's out-of-date. For example, it doesn't support the "executors" property and fails to validate jobs that specify an executor.
It would be nice if CircleCI either published their own schema or submitted patches to the schema on schemastore.
CCI-I-940