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: ...".
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.
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.
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.