Skip to content
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

Allow licenses to be absent from netkans #4137

Merged
merged 2 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Netkan/Transformers/SpacedockTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private Metadata TransformOne(Metadata metadata, JObject json, SpacedockMod sdMo
// "GPLv3" - Becomes "GPL-3.0"
// "LGPL" - Specific version is indeterminate

var sdLicense = sdMod.license.Trim();
var sdLicense = sdMod.license.Trim().Replace(' ', '-');

switch (sdLicense)
{
Expand Down
1 change: 1 addition & 0 deletions Netkan/Validators/CkanValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public CkanValidator(IHttpService downloader, IModuleService moduleService, IGam
new IsCkanModuleValidator(),
new DownloadArrayValidator(),
new TagsValidator(),
new LicensesValidator(),
new InstallsFilesValidator(downloader, moduleService, game),
new MatchesKnownGameVersionsValidator(game),
new ObeysCKANSchemaValidator(),
Expand Down
1 change: 0 additions & 1 deletion Netkan/Validators/NetkanValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public NetkanValidator()
new KrefValidator(),
new AlphaNumericIdentifierValidator(),
new RelationshipsValidator(),
new LicensesValidator(),
new KrefDownloadMutexValidator(),
new DownloadVersionValidator(),
new OverrideValidator(),
Expand Down