Skip to content

Commit 48367cb

Browse files
authored
feat(api): update revision field to required string (#634)
Signed-off-by: Gaius <[email protected]>
1 parent 9d9e8a7 commit 48367cb

File tree

8 files changed

+88
-98
lines changed

8 files changed

+88
-98
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dragonfly-api"
3-
version = "2.2.21"
3+
version = "2.2.22"
44
authors = ["Gaius <[email protected]>"]
55
edition = "2021"
66
license = "Apache-2.0"

pkg/apis/common/v2/common.pb.go

Lines changed: 71 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/common/v2/common.pb.validate.go

Lines changed: 11 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/common/v2/common.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,9 +774,8 @@ message HuggingFace {
774774
optional bool insecure_skip_verify = 2;
775775
// Revision of the HuggingFace model, dataset, or space. It can be a branch name, tag name, or commit hash. If not specified,
776776
// it defaults to the repository's default main branch.
777-
optional string revision = 3 [(validate.rules).string = {
777+
string revision = 3 [(validate.rules).string = {
778778
min_len: 1
779-
ignore_empty: true
780779
}];
781780
}
782781

proto/common.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ message HuggingFace {
692692
optional bool insecure_skip_verify = 2;
693693
// Revision of the HuggingFace model, dataset, or space. It can be a branch name, tag name, or commit hash. If not specified,
694694
// it defaults to the repository's default main branch.
695-
optional string revision = 3;
695+
string revision = 3;
696696
}
697697

698698
// Range represents download range.

src/common.v2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,8 +833,8 @@ pub struct HuggingFace {
833833
pub insecure_skip_verify: ::core::option::Option<bool>,
834834
/// Revision of the HuggingFace model, dataset, or space. It can be a branch name, tag name, or commit hash. If not specified,
835835
/// it defaults to the repository's default main branch.
836-
#[prost(string, optional, tag = "3")]
837-
pub revision: ::core::option::Option<::prost::alloc::string::String>,
836+
#[prost(string, tag = "3")]
837+
pub revision: ::prost::alloc::string::String,
838838
}
839839
/// Range represents download range.
840840
#[derive(serde::Serialize, serde::Deserialize)]

src/descriptor.bin

-33 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)