CircleCI "Config does not conform to schema" error
CircleCI parsed your YAML but it failed schema validation: a key is misspelled, placed at the wrong level, or has the wrong type. The message lists the path to each offending field.
What this error means
Validation fails with "Config does not conform to schema" and one or more lines like "Job X: ... extraneous key [Y] is not permitted" or "expected type: String, found: ...".
CircleCI
Error: config compilation contained errors:
* Config does not conform to schema:
- In job 'build': extraneous key [stes] is not permitted
- In job 'build': missing required key [steps]Common causes
A misspelled or misplaced key
A typo like stes instead of steps, or a top-level key nested under the wrong parent, fails the schema check.
The wrong value type for a field
A field that expects a string was given a list or map (or vice versa), so the type does not match the schema.
How to fix it
Fix the keys the schema names
- Read each "extraneous key" / "missing required key" path in the error.
- Correct the spelling or move the key to the right level.
- Re-run
circleci config validateuntil it passes.
.circleci/config.yml
jobs:
build:
docker:
- image: cimg/node:20.11
steps:
- checkout
- run: npm testProcess the full 2.1 config
Expand orbs and reusable config so schema errors in the compiled output are visible.
Terminal
circleci config process .circleci/config.ymlHow to prevent it
- Validate config on every push, not just at merge.
- Keep
version: 2.1and use editor schema hints for config.yml. - Review the compiled output of
config processfor reusable config.
Related guides
CircleCI "mapping values are not allowed here" YAML parse errorFix CircleCI "Unable to parse YAML ... mapping values are not allowed here" - a colon in the wrong place or b…
CircleCI "Cannot find a definition for executor named X" errorFix CircleCI "Cannot find a definition for executor named X" - a job references an executor that is not decla…
CircleCI "Skipping pipeline: config has errors" messageFix CircleCI "Skipping pipeline: the configuration file for this project has errors" - a push triggered no pi…