Fix dependency updates and creating versions with no game versions/loaders (#280)

This commit is contained in:
Geometrically
2022-01-24 11:27:39 -07:00
committed by GitHub
parent 384e14b32d
commit 2badcfa546
3 changed files with 25 additions and 24 deletions

View File

@@ -36,8 +36,10 @@ pub struct InitialVersionData {
pub version_body: Option<String>,
#[validate(length(min = 0, max = 256))]
pub dependencies: Vec<Dependency>,
#[validate(length(min = 1))]
pub game_versions: Vec<GameVersion>,
pub release_channel: VersionType,
#[validate(length(min = 1))]
pub loaders: Vec<Loader>,
pub featured: bool,
}