diff --git a/schema.json b/schema.json index 6744c768..8a2d13a5 100644 --- a/schema.json +++ b/schema.json @@ -16,7 +16,7 @@ }, "license": { "description": "Open source license under which the project is licensed", - "enum": ["GPL", "LGPL", "BSD", "Public", "MIT", "Apache"] + "enum": ["GPL", "LGPL", "BSD", "Public", "MIT", "Apache", "MPL"] }, "version": { "$ref": "#/definitions/semver" }, "classPath": { diff --git a/src/haxelib/Data.hx b/src/haxelib/Data.hx index 58e06923..6e2c42d2 100644 --- a/src/haxelib/Data.hx +++ b/src/haxelib/Data.hx @@ -190,6 +190,7 @@ typedef DefineDocumentation = { var Bsd = 'BSD'; var Public = 'Public'; var Apache = 'Apache'; + var Mpl = 'MPL'; @:disallowed var Unknown = 'Unknown'; } diff --git a/test/tests/integration/TestSubmit.hx b/test/tests/integration/TestSubmit.hx index 4b736bc8..80de46e7 100644 --- a/test/tests/integration/TestSubmit.hx +++ b/test/tests/integration/TestSubmit.hx @@ -125,7 +125,7 @@ class TestSubmit extends IntegrationTests { final r = haxelib(["submit", Path.join([IntegrationTests.projectRoot, "test/libraries/libInvalidLicense.zip"]), bar.pw]).result(); assertFail(r); - assertEquals("Error: Invalid value `Unknown` for License. Allowed values: GPL, LGPL, MIT, BSD, Public, Apache", r.err.trim()); + assertEquals("Error: Invalid value `Unknown` for License. Allowed values: GPL, LGPL, MIT, BSD, Public, Apache, MPL", r.err.trim()); final r = haxelib(["search", "Bar"]).result(); // did not get submitted