diff --git a/app/assets/javascripts/editor/schema/ci.json b/app/assets/javascripts/editor/schema/ci.json
index 1c2613ba724d8e95959b80b19fc5eee858b9e818..d7293b7042fcf9113902f92511b7a8de7ce50a35 100644
--- a/app/assets/javascripts/editor/schema/ci.json
+++ b/app/assets/javascripts/editor/schema/ci.json
@@ -196,7 +196,10 @@
   },
   "definitions": {
     "artifacts": {
-      "type": "object",
+      "type": [
+        "object",
+        "null"
+      ],
       "markdownDescription": "Used to specify a list of files and directories that should be attached to the job if it succeeds. Artifacts are sent to Gitlab where they can be downloaded. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#artifacts).",
       "additionalProperties": false,
       "properties": {