Explorar el Código

Fix the validation of required properties for inline packages

Christophe Coevoet hace 8 años
padre
commit
8cc1859492
Se han modificado 1 ficheros con 2 adiciones y 7 borrados
  1. 2 7
      res/composer-schema.json

+ 2 - 7
res/composer-schema.json

@@ -662,13 +662,8 @@
             }
         },
         "inline-package": {
-            "type": "object",
-            "oneOf": [
-                { "$ref": "#" },
-                {
-                    "required": ["name", "version"]
-                }
-            ]
+            "$ref": "#",
+            "required": ["name", "version"]
         }
     }
 }