You've already forked AstralRinth
forked from didirus/AstralRinth
Add more version creation data aliases (#325)
For consistency and also for making the OpenAPI spec a bit less janky
This commit is contained in:
committed by
GitHub
parent
023663b268
commit
7415b07586
@@ -34,8 +34,10 @@ pub struct InitialVersionData {
|
||||
)]
|
||||
pub version_number: String,
|
||||
#[validate(length(min = 3, max = 256))]
|
||||
#[serde(alias = "name")]
|
||||
pub version_title: String,
|
||||
#[validate(length(max = 65536))]
|
||||
#[serde(alias = "changelog")]
|
||||
pub version_body: Option<String>,
|
||||
#[validate(
|
||||
length(min = 0, max = 256),
|
||||
@@ -44,6 +46,7 @@ pub struct InitialVersionData {
|
||||
pub dependencies: Vec<Dependency>,
|
||||
#[validate(length(min = 1))]
|
||||
pub game_versions: Vec<GameVersion>,
|
||||
#[serde(alias = "version_type")]
|
||||
pub release_channel: VersionType,
|
||||
#[validate(length(min = 1))]
|
||||
pub loaders: Vec<Loader>,
|
||||
|
||||
Reference in New Issue
Block a user