-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CircleCI schema does not allow a "machine" key in a "job" - disagrees with CircleCI docs #3768
Comments
@pieterocp agreed - my examples are validating now, as expected. Marking this issue closed. |
@jclerman I'm using VSCode and this is still an issue for me. How do you get it to validate? Thanks. |
Actually this started failing for me again at some point after the issue was closed. I haven't tracked down the offending change. I'm using Pycharm, but I suspect that the IDE doesn't matter, it's the schema that has regressed. |
I'm having the same issue. IntelliJ is complaining about a job not having the On a side note, I'm wondering why the schema can't be taken directly from here: https://github.com/CircleCI-Public/circleci-yaml-language-server/blob/main/schema.json |
I think that this was originally committed on |
Area with issue?
JSON Schema
✔️ Expected Behavior
I have a CircleCI config file in which I have jobs defined (in part) like:
The current version of the CircleCI schema served at:
https://json.schemastore.org/circleciconfig.json
Does not allow that though - instead it wants a pre-defined (via an "exectors:" stanza) executor, and no longer allows the "machine:" key directly under a job definition.
This is in conflict with the current CircleCI docs, specifically the example shown here: https://circleci.com/docs/executor-intro/#linux-vm
and copied here:
Consequently, I'm getting complaints from PyCharm, which is following the schema defined in this repo.
❌ Actual Behavior
PyCharm is flagging my CircleCI config as invalid, but it's working just fine at CircleCI.
YAML or JSON file that does not work.
Minimal example
.circleci/config.yaml
illustrating the problem:IDE or code editor.
IntelliJ and it's derivatives
Are you making a PR for this?
No, someone else must create the PR.
The text was updated successfully, but these errors were encountered: