summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generator/src/main.rs6
-rw-r--r--generator/src/methods.rs6
-rw-r--r--generator/src/structs.rs16
-rw-r--r--src/generated/methods.rs2
-rw-r--r--src/generated/structs.rs276
-rw-r--r--swagger.v1.json471
-rw-r--r--tests/admin.rs6
-rw-r--r--tests/repo.rs31
8 files changed, 501 insertions, 313 deletions
diff --git a/generator/src/main.rs b/generator/src/main.rs
index 5d9d2c7..f69df2d 100644
--- a/generator/src/main.rs
+++ b/generator/src/main.rs
@@ -94,8 +94,10 @@ fn schema_type_name(
}
.to_string(),
Primitive::Integer => match schema.format.as_deref() {
- Some("int32") => "u32",
- Some("int64") => "u64",
+ Some("uint32") => "u32",
+ Some("uint64") => "u64",
+ Some("int32") => "i32",
+ Some("int64") => "i64",
_ => "u32",
}
.to_string(),
diff --git a/generator/src/methods.rs b/generator/src/methods.rs
index 6877437..75bb7db 100644
--- a/generator/src/methods.rs
+++ b/generator/src/methods.rs
@@ -222,8 +222,10 @@ pub fn param_type_inner(
}
.into(),
ParameterType::Integer => match format.as_deref() {
- Some("int32") => "u32",
- Some("int64") => "u64",
+ Some("uint32") => "u32",
+ Some("uint64") => "u64",
+ Some("int32") => "i32",
+ Some("int64") => "i64",
_ => "u32",
}
.into(),
diff --git a/generator/src/structs.rs b/generator/src/structs.rs
index 6a74dc1..4bd4418 100644
--- a/generator/src/structs.rs
+++ b/generator/src/structs.rs
@@ -547,12 +547,18 @@ fn create_header_struct(
}
},
ParameterType::Integer => match header.format.as_deref() {
- Some("int64") => {
+ Some("uint64") => {
imp.push_str("s.parse::<u64>().map_err(|_| StructureError::HeaderParseFailed)")
}
- Some("int32") | _ => {
+ Some("uint32") => {
imp.push_str("s.parse::<u32>().map_err(|_| StructureError::HeaderParseFailed)")
}
+ Some("int64") => {
+ imp.push_str("s.parse::<i64>().map_err(|_| StructureError::HeaderParseFailed)")
+ }
+ Some("int32") | _ => {
+ imp.push_str("s.parse::<i32>().map_err(|_| StructureError::HeaderParseFailed)")
+ }
},
ParameterType::Boolean => {
imp.push_str("s.parse::<bool>().map_err(|_| StructureError::HeaderParseFailed)")
@@ -584,8 +590,10 @@ fn create_header_struct(
Some("double") | _ => "s.parse::<f64>()).collect::<Result<Vec<_>, _>>().map_err(|_| StructureError::HeaderParseFailed)",
},
ParameterType::Integer => match items.format.as_deref() {
- Some("int64") => "s.parse::<u64>()).collect::<Result<Vec<_>, _>>().map_err(|_| StructureError::HeaderParseFailed)",
- Some("int32") | _ => "s.parse::<u32>()).collect::<Result<Vec<_>, _>>().map_err(|_| StructureError::HeaderParseFailed)",
+ Some("uint64") => "s.parse::<u64>()).collect::<Result<Vec<_>, _>>().map_err(|_| StructureError::HeaderParseFailed)",
+ Some("uint32") => "s.parse::<u32>()).collect::<Result<Vec<_>, _>>().map_err(|_| StructureError::HeaderParseFailed)",
+ Some("int64") => "s.parse::<i64>()).collect::<Result<Vec<_>, _>>().map_err(|_| StructureError::HeaderParseFailed)",
+ Some("int32") | _ => "s.parse::<i32>()).collect::<Result<Vec<_>, _>>().map_err(|_| StructureError::HeaderParseFailed)",
},
ParameterType::Boolean => "s.parse::<bool>()).collect::<Result<Vec<_>, _>>().map_err(|_| StructureError::HeaderParseFailed)",
ParameterType::Array => eyre::bail!("nested arrays not supported in headers"),
diff --git a/src/generated/methods.rs b/src/generated/methods.rs
index 96a3e18..621b3c9 100644
--- a/src/generated/methods.rs
+++ b/src/generated/methods.rs
@@ -4287,7 +4287,7 @@ impl crate::Forgejo {
&self,
owner: &str,
repo: &str,
- ) -> Result<BTreeMap<String, u64>, ForgejoError> {
+ ) -> Result<BTreeMap<String, i64>, ForgejoError> {
let request = self
.get(&format!("repos/{owner}/{repo}/languages"))
.build()?;
diff --git a/src/generated/structs.rs b/src/generated/structs.rs
index 5b97ac9..b08b0ee 100644
--- a/src/generated/structs.rs
+++ b/src/generated/structs.rs
@@ -10,7 +10,7 @@ pub struct APIError {
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct AccessToken {
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub name: Option<String>,
pub scopes: Option<Vec<String>>,
pub sha1: Option<String>,
@@ -20,19 +20,19 @@ pub struct AccessToken {
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct Activity {
pub act_user: Option<User>,
- pub act_user_id: Option<u64>,
+ pub act_user_id: Option<i64>,
pub comment: Option<Comment>,
- pub comment_id: Option<u64>,
+ pub comment_id: Option<i64>,
pub content: Option<String>,
#[serde(with = "time::serde::rfc3339::option")]
pub created: Option<time::OffsetDateTime>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub is_private: Option<bool>,
pub op_type: Option<String>,
pub ref_name: Option<String>,
pub repo: Option<Repository>,
- pub repo_id: Option<u64>,
- pub user_id: Option<u64>,
+ pub repo_id: Option<i64>,
+ pub user_id: Option<i64>,
}
/// ActivityPub type
@@ -54,7 +54,7 @@ pub struct AddTimeOption {
#[serde(with = "time::serde::rfc3339::option")]
pub created: Option<time::OffsetDateTime>,
/// time in seconds
- pub time: u64,
+ pub time: i64,
/// User who spent the time (optional)
pub user_name: Option<String>,
}
@@ -89,16 +89,16 @@ pub struct Attachment {
pub browser_download_url: Option<url::Url>,
#[serde(with = "time::serde::rfc3339::option")]
pub created_at: Option<time::OffsetDateTime>,
- pub download_count: Option<u64>,
- pub id: Option<u64>,
+ pub download_count: Option<i64>,
+ pub id: Option<i64>,
pub name: Option<String>,
- pub size: Option<u64>,
+ pub size: Option<i64>,
pub uuid: Option<String>,
}
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct BlockedUser {
- pub block_id: Option<u64>,
+ pub block_id: Option<i64>,
#[serde(with = "time::serde::rfc3339::option")]
pub created_at: Option<time::OffsetDateTime>,
}
@@ -111,7 +111,7 @@ pub struct Branch {
pub enable_status_check: Option<bool>,
pub name: Option<String>,
pub protected: Option<bool>,
- pub required_approvals: Option<u64>,
+ pub required_approvals: Option<i64>,
pub status_check_contexts: Option<Vec<String>>,
pub user_can_merge: Option<bool>,
pub user_can_push: Option<bool>,
@@ -144,7 +144,7 @@ pub struct BranchProtection {
pub push_whitelist_teams: Option<Vec<String>>,
pub push_whitelist_usernames: Option<Vec<String>>,
pub require_signed_commits: Option<bool>,
- pub required_approvals: Option<u64>,
+ pub required_approvals: Option<i64>,
pub rule_name: Option<String>,
pub status_check_contexts: Option<Vec<String>>,
pub unprotected_file_patterns: Option<String>,
@@ -201,11 +201,11 @@ pub struct ChangeFilesOptions {
/// ChangedFile store information about files affected by the pull request
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct ChangedFile {
- pub additions: Option<u64>,
- pub changes: Option<u64>,
+ pub additions: Option<i64>,
+ pub changes: Option<i64>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub contents_url: Option<url::Url>,
- pub deletions: Option<u64>,
+ pub deletions: Option<i64>,
pub filename: Option<String>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub html_url: Option<url::Url>,
@@ -224,7 +224,7 @@ pub struct CombinedStatus {
pub sha: Option<String>,
pub state: Option<String>,
pub statuses: Option<Vec<CommitStatus>>,
- pub total_count: Option<u64>,
+ pub total_count: Option<i64>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub url: Option<url::Url>,
}
@@ -238,11 +238,11 @@ pub struct Comment {
pub created_at: Option<time::OffsetDateTime>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub html_url: Option<url::Url>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub issue_url: Option<url::Url>,
pub original_author: Option<String>,
- pub original_author_id: Option<u64>,
+ pub original_author_id: Option<i64>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub pull_request_url: Option<url::Url>,
#[serde(with = "time::serde::rfc3339::option")]
@@ -295,9 +295,9 @@ pub struct CommitMeta {
/// CommitStats is statistics for a RepoCommit
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct CommitStats {
- pub additions: Option<u64>,
- pub deletions: Option<u64>,
- pub total: Option<u64>,
+ pub additions: Option<i64>,
+ pub deletions: Option<i64>,
+ pub total: Option<i64>,
}
/// CommitStatus holds a single status of a single Commit
@@ -308,7 +308,7 @@ pub struct CommitStatus {
pub created_at: Option<time::OffsetDateTime>,
pub creator: Option<User>,
pub description: Option<String>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub status: Option<String>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub target_url: Option<url::Url>,
@@ -350,7 +350,7 @@ pub struct ContentsResponse {
pub name: Option<String>,
pub path: Option<String>,
pub sha: Option<String>,
- pub size: Option<u64>,
+ pub size: Option<i64>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
/// `submodule_git_url` is populated when `type` is `submodule`, otherwise null
pub submodule_git_url: Option<url::Url>,
@@ -395,7 +395,7 @@ pub struct CreateBranchProtectionOption {
pub push_whitelist_teams: Option<Vec<String>>,
pub push_whitelist_usernames: Option<Vec<String>>,
pub require_signed_commits: Option<bool>,
- pub required_approvals: Option<u64>,
+ pub required_approvals: Option<i64>,
pub rule_name: Option<String>,
pub status_check_contexts: Option<Vec<String>>,
pub unprotected_file_patterns: Option<String>,
@@ -525,9 +525,9 @@ pub struct CreateIssueOption {
#[serde(with = "time::serde::rfc3339::option")]
pub due_date: Option<time::OffsetDateTime>,
/// list of label ids
- pub labels: Option<Vec<u64>>,
+ pub labels: Option<Vec<i64>>,
/// milestone id
- pub milestone: Option<u64>,
+ pub milestone: Option<i64>,
#[serde(rename = "ref")]
pub r#ref: Option<String>,
pub title: String,
@@ -621,8 +621,8 @@ pub struct CreatePullRequestOption {
#[serde(with = "time::serde::rfc3339::option")]
pub due_date: Option<time::OffsetDateTime>,
pub head: Option<String>,
- pub labels: Option<Vec<u64>>,
- pub milestone: Option<u64>,
+ pub labels: Option<Vec<i64>>,
+ pub milestone: Option<i64>,
pub title: Option<String>,
}
@@ -631,9 +631,9 @@ pub struct CreatePullRequestOption {
pub struct CreatePullReviewComment {
pub body: Option<String>,
/// if comment to new file line or 0
- pub new_position: Option<u64>,
+ pub new_position: Option<i64>,
/// if comment to old file line or 0
- pub old_position: Option<u64>,
+ pub old_position: Option<i64>,
/// the tree path
pub path: Option<String>,
}
@@ -768,7 +768,7 @@ pub struct CreateUserOption {
pub password: Option<String>,
pub restricted: Option<bool>,
pub send_notify: Option<bool>,
- pub source_id: Option<u64>,
+ pub source_id: Option<i64>,
pub username: String,
pub visibility: Option<String>,
}
@@ -787,7 +787,7 @@ pub struct CreateWikiPageOptions {
/// Cron represents a Cron task
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct Cron {
- pub exec_times: Option<u64>,
+ pub exec_times: Option<i64>,
pub name: Option<String>,
#[serde(with = "time::serde::rfc3339::option")]
pub next: Option<time::OffsetDateTime>,
@@ -849,9 +849,9 @@ pub struct DeployKey {
#[serde(with = "time::serde::rfc3339::option")]
pub created_at: Option<time::OffsetDateTime>,
pub fingerprint: Option<String>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub key: Option<String>,
- pub key_id: Option<u64>,
+ pub key_id: Option<i64>,
pub read_only: Option<bool>,
pub repository: Option<Repository>,
pub title: Option<String>,
@@ -895,7 +895,7 @@ pub struct EditBranchProtectionOption {
pub push_whitelist_teams: Option<Vec<String>>,
pub push_whitelist_usernames: Option<Vec<String>>,
pub require_signed_commits: Option<bool>,
- pub required_approvals: Option<u64>,
+ pub required_approvals: Option<i64>,
pub status_check_contexts: Option<Vec<String>>,
pub unprotected_file_patterns: Option<String>,
}
@@ -940,7 +940,7 @@ pub struct EditIssueOption {
pub body: Option<String>,
#[serde(with = "time::serde::rfc3339::option")]
pub due_date: Option<time::OffsetDateTime>,
- pub milestone: Option<u64>,
+ pub milestone: Option<i64>,
#[serde(rename = "ref")]
pub r#ref: Option<String>,
pub state: Option<String>,
@@ -1004,8 +1004,8 @@ pub struct EditPullRequestOption {
pub body: Option<String>,
#[serde(with = "time::serde::rfc3339::option")]
pub due_date: Option<time::OffsetDateTime>,
- pub labels: Option<Vec<u64>>,
- pub milestone: Option<u64>,
+ pub labels: Option<Vec<i64>>,
+ pub milestone: Option<i64>,
pub state: Option<String>,
pub title: Option<String>,
pub unset_due_date: Option<bool>,
@@ -1131,13 +1131,13 @@ pub struct EditUserOption {
pub full_name: Option<String>,
pub location: Option<String>,
pub login_name: String,
- pub max_repo_creation: Option<u64>,
+ pub max_repo_creation: Option<i64>,
pub must_change_password: Option<bool>,
pub password: Option<String>,
pub prohibit_login: Option<bool>,
pub pronouns: Option<String>,
pub restricted: Option<bool>,
- pub source_id: u64,
+ pub source_id: i64,
pub visibility: Option<String>,
pub website: Option<String>,
}
@@ -1147,7 +1147,7 @@ pub struct EditUserOption {
pub struct Email {
pub email: Option<String>,
pub primary: Option<bool>,
- pub user_id: Option<u64>,
+ pub user_id: Option<i64>,
pub username: Option<String>,
pub verified: Option<bool>,
}
@@ -1235,7 +1235,7 @@ pub struct GPGKey {
pub emails: Option<Vec<GPGKeyEmail>>,
#[serde(with = "time::serde::rfc3339::option")]
pub expires_at: Option<time::OffsetDateTime>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub key_id: Option<String>,
pub primary_key_id: Option<String>,
pub public_key: Option<String>,
@@ -1253,10 +1253,10 @@ pub struct GPGKeyEmail {
/// GeneralAPISettings contains global api settings exposed by it
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct GeneralAPISettings {
- pub default_git_trees_per_page: Option<u64>,
- pub default_max_blob_size: Option<u64>,
- pub default_paging_num: Option<u64>,
- pub max_response_items: Option<u64>,
+ pub default_git_trees_per_page: Option<i64>,
+ pub default_max_blob_size: Option<i64>,
+ pub default_paging_num: Option<i64>,
+ pub max_response_items: Option<i64>,
}
/// GeneralAttachmentSettings contains global Attachment settings exposed by API
@@ -1264,8 +1264,8 @@ pub struct GeneralAPISettings {
pub struct GeneralAttachmentSettings {
pub allowed_types: Option<String>,
pub enabled: Option<bool>,
- pub max_files: Option<u64>,
- pub max_size: Option<u64>,
+ pub max_files: Option<i64>,
+ pub max_size: Option<i64>,
}
/// GeneralRepoSettings contains global repository settings exposed by API
@@ -1323,7 +1323,7 @@ pub struct GitBlobResponse {
pub content: Option<String>,
pub encoding: Option<String>,
pub sha: Option<String>,
- pub size: Option<u64>,
+ pub size: Option<i64>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub url: Option<url::Url>,
}
@@ -1334,7 +1334,7 @@ pub struct GitEntry {
pub mode: Option<String>,
pub path: Option<String>,
pub sha: Option<String>,
- pub size: Option<u64>,
+ pub size: Option<i64>,
#[serde(rename = "type")]
pub r#type: Option<String>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
@@ -1361,9 +1361,9 @@ pub struct GitObject {
/// GitTreeResponse returns a git tree
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct GitTreeResponse {
- pub page: Option<u64>,
+ pub page: Option<i64>,
pub sha: Option<String>,
- pub total_count: Option<u64>,
+ pub total_count: Option<i64>,
pub tree: Option<Vec<GitEntry>>,
pub truncated: Option<bool>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
@@ -1389,7 +1389,7 @@ pub struct Hook {
#[serde(with = "time::serde::rfc3339::option")]
pub created_at: Option<time::OffsetDateTime>,
pub events: Option<Vec<String>>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub metadata: Option<serde_json::Value>,
#[serde(rename = "type")]
pub r#type: Option<String>,
@@ -1426,21 +1426,21 @@ pub struct Issue {
pub body: Option<String>,
#[serde(with = "time::serde::rfc3339::option")]
pub closed_at: Option<time::OffsetDateTime>,
- pub comments: Option<u64>,
+ pub comments: Option<i64>,
#[serde(with = "time::serde::rfc3339::option")]
pub created_at: Option<time::OffsetDateTime>,
#[serde(with = "time::serde::rfc3339::option")]
pub due_date: Option<time::OffsetDateTime>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub html_url: Option<url::Url>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub is_locked: Option<bool>,
pub labels: Option<Vec<Label>>,
pub milestone: Option<Milestone>,
- pub number: Option<u64>,
+ pub number: Option<i64>,
pub original_author: Option<String>,
- pub original_author_id: Option<u64>,
- pub pin_order: Option<u64>,
+ pub original_author_id: Option<i64>,
+ pub pin_order: Option<i64>,
pub pull_request: Option<PullRequestMeta>,
#[serde(rename = "ref")]
pub r#ref: Option<String>,
@@ -1503,7 +1503,7 @@ pub struct IssueFormFieldVisible {}
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct IssueLabelsOption {
/// list of label IDs
- pub labels: Option<Vec<u64>>,
+ pub labels: Option<Vec<i64>>,
#[serde(with = "time::serde::rfc3339::option")]
pub updated_at: Option<time::OffsetDateTime>,
}
@@ -1511,7 +1511,7 @@ pub struct IssueLabelsOption {
/// IssueMeta basic issue information
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct IssueMeta {
- pub index: Option<u64>,
+ pub index: Option<i64>,
pub owner: Option<String>,
pub repo: Option<String>,
}
@@ -1536,7 +1536,7 @@ pub struct Label {
pub color: Option<String>,
pub description: Option<String>,
pub exclusive: Option<bool>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub is_archived: Option<bool>,
pub name: Option<String>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
@@ -1702,7 +1702,7 @@ pub struct MigrateRepoOptions {
pub repo_owner: Option<String>,
pub service: Option<MigrateRepoOptionsService>,
/// deprecated (only for backwards compatibility)
- pub uid: Option<u64>,
+ pub uid: Option<i64>,
pub wiki: Option<bool>,
}
@@ -1730,14 +1730,14 @@ pub enum MigrateRepoOptionsService {
pub struct Milestone {
#[serde(with = "time::serde::rfc3339::option")]
pub closed_at: Option<time::OffsetDateTime>,
- pub closed_issues: Option<u64>,
+ pub closed_issues: Option<i64>,
#[serde(with = "time::serde::rfc3339::option")]
pub created_at: Option<time::OffsetDateTime>,
pub description: Option<String>,
#[serde(with = "time::serde::rfc3339::option")]
pub due_on: Option<time::OffsetDateTime>,
- pub id: Option<u64>,
- pub open_issues: Option<u64>,
+ pub id: Option<i64>,
+ pub open_issues: Option<i64>,
pub state: Option<StateType>,
pub title: Option<String>,
#[serde(with = "time::serde::rfc3339::option")]
@@ -1784,9 +1784,9 @@ pub struct NodeInfoSoftware {
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct NodeInfoUsage {
#[serde(rename = "localComments")]
- pub local_comments: Option<u64>,
+ pub local_comments: Option<i64>,
#[serde(rename = "localPosts")]
- pub local_posts: Option<u64>,
+ pub local_posts: Option<i64>,
pub users: Option<NodeInfoUsageUsers>,
}
@@ -1794,10 +1794,10 @@ pub struct NodeInfoUsage {
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct NodeInfoUsageUsers {
#[serde(rename = "activeHalfyear")]
- pub active_halfyear: Option<u64>,
+ pub active_halfyear: Option<i64>,
#[serde(rename = "activeMonth")]
- pub active_month: Option<u64>,
- pub total: Option<u64>,
+ pub active_month: Option<i64>,
+ pub total: Option<i64>,
}
/// Note contains information related to a git note
@@ -1810,7 +1810,7 @@ pub struct Note {
/// NotificationCount number of unread notifications
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct NotificationCount {
- pub new: Option<u64>,
+ pub new: Option<i64>,
}
/// NotificationSubject contains the notification subject (Issue/Pull/Commit)
@@ -1833,7 +1833,7 @@ pub struct NotificationSubject {
/// NotificationThread expose Notification on API
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct NotificationThread {
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub pinned: Option<bool>,
pub repository: Option<Repository>,
pub subject: Option<NotificationSubject>,
@@ -1855,7 +1855,7 @@ pub struct OAuth2Application {
pub confidential_client: Option<bool>,
#[serde(with = "time::serde::rfc3339::option")]
pub created: Option<time::OffsetDateTime>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub name: Option<String>,
pub redirect_uris: Option<Vec<String>>,
}
@@ -1877,7 +1877,7 @@ pub struct Organization {
pub description: Option<String>,
pub email: Option<String>,
pub full_name: Option<String>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub location: Option<String>,
pub name: Option<String>,
pub repo_admin_change_team_access: Option<bool>,
@@ -1904,7 +1904,7 @@ pub struct PRBranchInfo {
#[serde(rename = "ref")]
pub r#ref: Option<String>,
pub repo: Option<Repository>,
- pub repo_id: Option<u64>,
+ pub repo_id: Option<i64>,
pub sha: Option<String>,
}
@@ -1916,7 +1916,7 @@ pub struct Package {
pub creator: Option<User>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub html_url: Option<url::Url>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub name: Option<String>,
pub owner: Option<User>,
pub repository: Option<Repository>,
@@ -1929,8 +1929,8 @@ pub struct Package {
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct PackageFile {
#[serde(rename = "Size")]
- pub size: Option<u64>,
- pub id: Option<u64>,
+ pub size: Option<i64>,
+ pub id: Option<i64>,
pub md5: Option<String>,
pub name: Option<String>,
pub sha1: Option<String>,
@@ -1989,7 +1989,7 @@ pub struct PublicKey {
#[serde(with = "time::serde::rfc3339::option")]
pub created_at: Option<time::OffsetDateTime>,
pub fingerprint: Option<String>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub key: Option<String>,
pub key_type: Option<String>,
pub read_only: Option<bool>,
@@ -2009,7 +2009,7 @@ pub struct PullRequest {
pub body: Option<String>,
#[serde(with = "time::serde::rfc3339::option")]
pub closed_at: Option<time::OffsetDateTime>,
- pub comments: Option<u64>,
+ pub comments: Option<i64>,
#[serde(with = "time::serde::rfc3339::option")]
pub created_at: Option<time::OffsetDateTime>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
@@ -2019,7 +2019,7 @@ pub struct PullRequest {
pub head: Option<PRBranchInfo>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub html_url: Option<url::Url>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub is_locked: Option<bool>,
pub labels: Option<Vec<Label>>,
pub merge_base: Option<String>,
@@ -2030,10 +2030,10 @@ pub struct PullRequest {
pub merged_at: Option<time::OffsetDateTime>,
pub merged_by: Option<User>,
pub milestone: Option<Milestone>,
- pub number: Option<u64>,
+ pub number: Option<i64>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub patch_url: Option<url::Url>,
- pub pin_order: Option<u64>,
+ pub pin_order: Option<i64>,
#[serde(deserialize_with = "crate::requested_reviewers_ignore_null")]
pub requested_reviewers: Option<Vec<User>>,
pub state: Option<StateType>,
@@ -2058,12 +2058,12 @@ pub struct PullRequestMeta {
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct PullReview {
pub body: Option<String>,
- pub comments_count: Option<u64>,
+ pub comments_count: Option<i64>,
pub commit_id: Option<String>,
pub dismissed: Option<bool>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub html_url: Option<url::Url>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub official: Option<bool>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub pull_request_url: Option<url::Url>,
@@ -2087,12 +2087,12 @@ pub struct PullReviewComment {
pub diff_hunk: Option<String>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub html_url: Option<url::Url>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub original_commit_id: Option<String>,
- pub original_position: Option<u32>,
+ pub original_position: Option<u64>,
pub path: Option<String>,
- pub position: Option<u32>,
- pub pull_request_review_id: Option<u64>,
+ pub position: Option<u64>,
+ pub pull_request_review_id: Option<i64>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub pull_request_url: Option<url::Url>,
pub resolver: Option<User>,
@@ -2152,7 +2152,7 @@ pub struct Release {
pub draft: Option<bool>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub html_url: Option<url::Url>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub name: Option<String>,
pub prerelease: Option<bool>,
#[serde(with = "time::serde::rfc3339::option")]
@@ -2243,7 +2243,7 @@ pub struct Repository {
pub external_tracker: Option<ExternalTracker>,
pub external_wiki: Option<ExternalWiki>,
pub fork: Option<bool>,
- pub forks_count: Option<u64>,
+ pub forks_count: Option<i64>,
pub full_name: Option<String>,
pub has_actions: Option<bool>,
pub has_issues: Option<bool>,
@@ -2254,7 +2254,7 @@ pub struct Repository {
pub has_wiki: Option<bool>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub html_url: Option<url::Url>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub ignore_whitespace_conflicts: Option<bool>,
pub internal: Option<bool>,
pub internal_tracker: Option<InternalTracker>,
@@ -2268,26 +2268,26 @@ pub struct Repository {
pub mirror_updated: Option<time::OffsetDateTime>,
pub name: Option<String>,
pub object_format_name: Option<ObjectFormatName>,
- pub open_issues_count: Option<u64>,
- pub open_pr_counter: Option<u64>,
+ pub open_issues_count: Option<i64>,
+ pub open_pr_counter: Option<i64>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub original_url: Option<url::Url>,
pub owner: Option<User>,
pub parent: Option<Box<Repository>>,
pub permissions: Option<Permission>,
pub private: Option<bool>,
- pub release_counter: Option<u64>,
+ pub release_counter: Option<i64>,
pub repo_transfer: Option<RepoTransfer>,
- pub size: Option<u64>,
+ pub size: Option<i64>,
#[serde(deserialize_with = "crate::deserialize_optional_ssh_url")]
pub ssh_url: Option<url::Url>,
- pub stars_count: Option<u64>,
+ pub stars_count: Option<i64>,
pub template: Option<bool>,
#[serde(with = "time::serde::rfc3339::option")]
pub updated_at: Option<time::OffsetDateTime>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub url: Option<url::Url>,
- pub watchers_count: Option<u64>,
+ pub watchers_count: Option<i64>,
pub website: Option<String>,
pub wiki_branch: Option<String>,
}
@@ -2296,7 +2296,7 @@ pub struct Repository {
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct RepositoryMeta {
pub full_name: Option<String>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub name: Option<String>,
pub owner: Option<String>,
}
@@ -2342,11 +2342,11 @@ pub struct StopWatch {
#[serde(with = "time::serde::rfc3339::option")]
pub created: Option<time::OffsetDateTime>,
pub duration: Option<String>,
- pub issue_index: Option<u64>,
+ pub issue_index: Option<i64>,
pub issue_title: Option<String>,
pub repo_name: Option<String>,
pub repo_owner_name: Option<String>,
- pub seconds: Option<u64>,
+ pub seconds: Option<i64>,
}
/// SubmitPullReviewOptions are options to submit a pending pull review
@@ -2374,7 +2374,7 @@ pub struct Tag {
pub struct Team {
pub can_create_org_repo: Option<bool>,
pub description: Option<String>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub includes_all_repositories: Option<bool>,
pub name: Option<String>,
pub organization: Option<Organization>,
@@ -2411,7 +2411,7 @@ pub struct TimelineComment {
pub dependent_issue: Option<Issue>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub html_url: Option<url::Url>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub issue_url: Option<url::Url>,
pub label: Option<Label>,
@@ -2419,10 +2419,10 @@ pub struct TimelineComment {
pub new_ref: Option<String>,
pub new_title: Option<String>,
pub old_milestone: Option<Milestone>,
- pub old_project_id: Option<u64>,
+ pub old_project_id: Option<i64>,
pub old_ref: Option<String>,
pub old_title: Option<String>,
- pub project_id: Option<u64>,
+ pub project_id: Option<i64>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
pub pull_request_url: Option<url::Url>,
pub ref_action: Option<String>,
@@ -2433,7 +2433,7 @@ pub struct TimelineComment {
/// whether the assignees were removed or added
pub removed_assignee: Option<bool>,
pub resolve_doer: Option<User>,
- pub review_id: Option<u64>,
+ pub review_id: Option<i64>,
pub tracked_time: Option<TrackedTime>,
#[serde(rename = "type")]
pub r#type: Option<String>,
@@ -2453,8 +2453,8 @@ pub struct TopicName {
pub struct TopicResponse {
#[serde(with = "time::serde::rfc3339::option")]
pub created: Option<time::OffsetDateTime>,
- pub id: Option<u64>,
- pub repo_count: Option<u64>,
+ pub id: Option<i64>,
+ pub repo_count: Option<i64>,
pub topic_name: Option<String>,
#[serde(with = "time::serde::rfc3339::option")]
pub updated: Option<time::OffsetDateTime>,
@@ -2465,14 +2465,14 @@ pub struct TopicResponse {
pub struct TrackedTime {
#[serde(with = "time::serde::rfc3339::option")]
pub created: Option<time::OffsetDateTime>,
- pub id: Option<u64>,
+ pub id: Option<i64>,
pub issue: Option<Issue>,
/// deprecated (only for backwards compatibility)
- pub issue_id: Option<u64>,
+ pub issue_id: Option<i64>,
/// Time in seconds
- pub time: Option<u64>,
+ pub time: Option<i64>,
/// deprecated (only for backwards compatibility)
- pub user_id: Option<u64>,
+ pub user_id: Option<i64>,
pub user_name: Option<String>,
}
@@ -2481,7 +2481,7 @@ pub struct TrackedTime {
pub struct TransferRepoOption {
pub new_owner: String,
/// ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.
- pub team_ids: Option<Vec<u64>>,
+ pub team_ids: Option<Vec<i64>>,
}
/// UpdateFileOptions options for updating files
@@ -2536,12 +2536,12 @@ pub struct User {
pub description: Option<String>,
pub email: Option<String>,
/// user counts
- pub followers_count: Option<u64>,
- pub following_count: Option<u64>,
+ pub followers_count: Option<i64>,
+ pub following_count: Option<i64>,
/// the user's full name
pub full_name: Option<String>,
/// the user's id
- pub id: Option<u64>,
+ pub id: Option<i64>,
/// Is the user an administrator
pub is_admin: Option<bool>,
/// User locale
@@ -2560,7 +2560,7 @@ pub struct User {
pub pronouns: Option<String>,
/// Is user restricted
pub restricted: Option<bool>,
- pub starred_repos_count: Option<u64>,
+ pub starred_repos_count: Option<i64>,
/// User visibility level option: public, limited, private
pub visibility: Option<String>,
/// the user's website
@@ -2570,8 +2570,8 @@ pub struct User {
/// UserHeatmapData represents the data needed to create a heatmap
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct UserHeatmapData {
- pub contributions: Option<u64>,
- pub timestamp: Option<u64>,
+ pub contributions: Option<i64>,
+ pub timestamp: Option<i64>,
}
/// UserSettings represents user settings
@@ -2635,13 +2635,13 @@ pub struct WikiCommit {
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct WikiCommitList {
pub commits: Option<Vec<WikiCommit>>,
- pub count: Option<u64>,
+ pub count: Option<i64>,
}
/// WikiPage a wiki page
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct WikiPage {
- pub commit_count: Option<u64>,
+ pub commit_count: Option<i64>,
/// Page content, base64 encoded
pub content_base64: Option<String>,
pub footer: Option<String>,
@@ -2667,10 +2667,10 @@ pub struct WikiPageMetaData {
pub struct ChangedFileListHeaders {
pub x_has_more: Option<bool>,
- pub x_page: Option<u64>,
- pub x_page_count: Option<u64>,
- pub x_per_page: Option<u64>,
- pub x_total_count: Option<u64>,
+ pub x_page: Option<i64>,
+ pub x_page_count: Option<i64>,
+ pub x_per_page: Option<i64>,
+ pub x_total_count: Option<i64>,
}
impl TryFrom<&reqwest::header::HeaderMap> for ChangedFileListHeaders {
@@ -2689,7 +2689,7 @@ impl TryFrom<&reqwest::header::HeaderMap> for ChangedFileListHeaders {
.get("X-Page")
.map(|s| -> Result<_, _> {
let s = s.to_str().map_err(|_| StructureError::HeaderNotAscii)?;
- s.parse::<u64>()
+ s.parse::<i64>()
.map_err(|_| StructureError::HeaderParseFailed)
})
.transpose()?;
@@ -2697,7 +2697,7 @@ impl TryFrom<&reqwest::header::HeaderMap> for ChangedFileListHeaders {
.get("X-PageCount")
.map(|s| -> Result<_, _> {
let s = s.to_str().map_err(|_| StructureError::HeaderNotAscii)?;
- s.parse::<u64>()
+ s.parse::<i64>()
.map_err(|_| StructureError::HeaderParseFailed)
})
.transpose()?;
@@ -2705,7 +2705,7 @@ impl TryFrom<&reqwest::header::HeaderMap> for ChangedFileListHeaders {
.get("X-PerPage")
.map(|s| -> Result<_, _> {
let s = s.to_str().map_err(|_| StructureError::HeaderNotAscii)?;
- s.parse::<u64>()
+ s.parse::<i64>()
.map_err(|_| StructureError::HeaderParseFailed)
})
.transpose()?;
@@ -2713,7 +2713,7 @@ impl TryFrom<&reqwest::header::HeaderMap> for ChangedFileListHeaders {
.get("X-Total-Count")
.map(|s| -> Result<_, _> {
let s = s.to_str().map_err(|_| StructureError::HeaderNotAscii)?;
- s.parse::<u64>()
+ s.parse::<i64>()
.map_err(|_| StructureError::HeaderParseFailed)
})
.transpose()?;
@@ -2729,10 +2729,10 @@ impl TryFrom<&reqwest::header::HeaderMap> for ChangedFileListHeaders {
pub struct CommitListHeaders {
pub x_has_more: Option<bool>,
- pub x_page: Option<u64>,
- pub x_page_count: Option<u64>,
- pub x_per_page: Option<u64>,
- pub x_total: Option<u64>,
+ pub x_page: Option<i64>,
+ pub x_page_count: Option<i64>,
+ pub x_per_page: Option<i64>,
+ pub x_total: Option<i64>,
}
impl TryFrom<&reqwest::header::HeaderMap> for CommitListHeaders {
@@ -2751,7 +2751,7 @@ impl TryFrom<&reqwest::header::HeaderMap> for CommitListHeaders {
.get("X-Page")
.map(|s| -> Result<_, _> {
let s = s.to_str().map_err(|_| StructureError::HeaderNotAscii)?;
- s.parse::<u64>()
+ s.parse::<i64>()
.map_err(|_| StructureError::HeaderParseFailed)
})
.transpose()?;
@@ -2759,7 +2759,7 @@ impl TryFrom<&reqwest::header::HeaderMap> for CommitListHeaders {
.get("X-PageCount")
.map(|s| -> Result<_, _> {
let s = s.to_str().map_err(|_| StructureError::HeaderNotAscii)?;
- s.parse::<u64>()
+ s.parse::<i64>()
.map_err(|_| StructureError::HeaderParseFailed)
})
.transpose()?;
@@ -2767,7 +2767,7 @@ impl TryFrom<&reqwest::header::HeaderMap> for CommitListHeaders {
.get("X-PerPage")
.map(|s| -> Result<_, _> {
let s = s.to_str().map_err(|_| StructureError::HeaderNotAscii)?;
- s.parse::<u64>()
+ s.parse::<i64>()
.map_err(|_| StructureError::HeaderParseFailed)
})
.transpose()?;
@@ -2775,7 +2775,7 @@ impl TryFrom<&reqwest::header::HeaderMap> for CommitListHeaders {
.get("X-Total")
.map(|s| -> Result<_, _> {
let s = s.to_str().map_err(|_| StructureError::HeaderNotAscii)?;
- s.parse::<u64>()
+ s.parse::<i64>()
.map_err(|_| StructureError::HeaderParseFailed)
})
.transpose()?;
diff --git a/swagger.v1.json b/swagger.v1.json
index fad9e63..6611d2a 100644
--- a/swagger.v1.json
+++ b/swagger.v1.json
@@ -67,12 +67,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -122,12 +124,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -158,12 +162,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -188,12 +194,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -237,7 +245,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the hook to get",
"name": "id",
"in": "path",
@@ -258,7 +266,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the hook to delete",
"name": "id",
"in": "path",
@@ -280,7 +288,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the hook to update",
"name": "id",
"in": "path",
@@ -310,12 +318,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -353,12 +363,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -454,7 +466,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "ID of the user's login source to search for",
"name": "source_id",
"in": "query"
@@ -467,12 +479,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -644,7 +658,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the key to delete",
"name": "id",
"in": "path",
@@ -1041,12 +1055,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -1226,12 +1242,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -1390,12 +1408,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -1514,12 +1534,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -1641,12 +1663,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -1710,7 +1734,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the hook to get",
"name": "id",
"in": "path",
@@ -1741,7 +1765,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the hook to delete",
"name": "id",
"in": "path",
@@ -1773,7 +1797,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the hook to update",
"name": "id",
"in": "path",
@@ -1813,12 +1837,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -1884,7 +1910,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the label to get",
"name": "id",
"in": "path",
@@ -1914,7 +1940,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the label to delete",
"name": "id",
"in": "path",
@@ -1946,7 +1972,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the label to edit",
"name": "id",
"in": "path",
@@ -1989,12 +2015,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -2023,12 +2051,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -2124,12 +2154,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -2258,12 +2290,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -2332,12 +2366,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -2415,12 +2451,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -2501,12 +2539,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -2725,7 +2765,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "repository to prioritize in the results",
"name": "priority_repo_id",
"in": "query"
@@ -2794,12 +2834,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -2871,28 +2913,28 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "search only for repos that the user with the given id owns or contributes to",
"name": "uid",
"in": "query"
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "repo owner to prioritize in the results",
"name": "priority_owner_id",
"in": "query"
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "search only for repos that belong to the given team id",
"name": "team_id",
"in": "query"
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "search only for repos that the user with the given id has starred",
"name": "starredBy",
"in": "query"
@@ -2947,12 +2989,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -3201,12 +3245,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -3592,12 +3638,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -3762,12 +3810,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -4010,12 +4060,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results (ignored if used with 'path')",
"name": "limit",
"in": "query"
@@ -4070,12 +4122,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -4144,12 +4198,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -4845,12 +4901,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -5264,12 +5322,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "number of items per page",
"name": "per_page",
"in": "query"
@@ -5311,12 +5371,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -5545,7 +5607,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the hook to get",
"name": "id",
"in": "path",
@@ -5583,7 +5645,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the hook to delete",
"name": "id",
"in": "path",
@@ -5621,7 +5683,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the hook",
"name": "id",
"in": "path",
@@ -5668,7 +5730,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the hook to test",
"name": "id",
"in": "path",
@@ -5874,12 +5936,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -5982,12 +6046,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -6027,7 +6093,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the comment",
"name": "id",
"in": "path",
@@ -6070,7 +6136,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of comment to delete",
"name": "id",
"in": "path",
@@ -6112,7 +6178,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the comment to edit",
"name": "id",
"in": "path",
@@ -6168,7 +6234,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the comment",
"name": "id",
"in": "path",
@@ -6207,7 +6273,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the comment",
"name": "id",
"in": "path",
@@ -6273,7 +6339,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the comment",
"name": "id",
"in": "path",
@@ -6281,7 +6347,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the attachment to get",
"name": "attachment_id",
"in": "path",
@@ -6319,7 +6385,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the comment",
"name": "id",
"in": "path",
@@ -6327,7 +6393,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the attachment to delete",
"name": "attachment_id",
"in": "path",
@@ -6369,7 +6435,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the comment",
"name": "id",
"in": "path",
@@ -6377,7 +6443,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the attachment to edit",
"name": "attachment_id",
"in": "path",
@@ -6428,7 +6494,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the comment to edit",
"name": "id",
"in": "path",
@@ -6470,7 +6536,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the comment to edit",
"name": "id",
"in": "path",
@@ -6522,7 +6588,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the comment to edit",
"name": "id",
"in": "path",
@@ -6604,7 +6670,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue to get",
"name": "index",
"in": "path",
@@ -6641,7 +6707,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of issue to delete",
"name": "index",
"in": "path",
@@ -6683,7 +6749,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue to edit",
"name": "index",
"in": "path",
@@ -6736,7 +6802,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -6775,7 +6841,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -6841,7 +6907,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -6849,7 +6915,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the attachment to get",
"name": "attachment_id",
"in": "path",
@@ -6887,7 +6953,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -6895,7 +6961,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the attachment to delete",
"name": "attachment_id",
"in": "path",
@@ -6937,7 +7003,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -6945,7 +7011,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the attachment to edit",
"name": "attachment_id",
"in": "path",
@@ -7002,12 +7068,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -7134,7 +7202,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -7187,7 +7255,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -7247,7 +7315,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of comment to delete",
"name": "id",
"in": "path",
@@ -7297,7 +7365,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the comment to edit",
"name": "id",
"in": "path",
@@ -7351,7 +7419,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue to create or update a deadline on",
"name": "index",
"in": "path",
@@ -7408,12 +7476,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -7546,7 +7616,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -7585,7 +7655,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -7634,7 +7704,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -7682,7 +7752,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -7732,7 +7802,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -7740,7 +7810,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the label to remove",
"name": "id",
"in": "path",
@@ -7792,7 +7862,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of issue to pin",
"name": "index",
"in": "path",
@@ -7832,7 +7902,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of issue to unpin",
"name": "index",
"in": "path",
@@ -7874,7 +7944,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of issue",
"name": "index",
"in": "path",
@@ -7882,7 +7952,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "the new position",
"name": "position",
"in": "path",
@@ -7926,7 +7996,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -7934,12 +8004,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -7980,7 +8052,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -8032,7 +8104,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -8083,7 +8155,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue to stop the stopwatch on",
"name": "index",
"in": "path",
@@ -8130,7 +8202,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue to create the stopwatch on",
"name": "index",
"in": "path",
@@ -8177,7 +8249,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue to stop the stopwatch on",
"name": "index",
"in": "path",
@@ -8224,7 +8296,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -8232,12 +8304,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -8277,7 +8351,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -8318,7 +8392,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -8370,7 +8444,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -8423,7 +8497,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -8438,12 +8512,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -8489,7 +8565,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -8517,12 +8593,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -8560,7 +8638,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -8612,7 +8690,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue to add tracked time to",
"name": "index",
"in": "path",
@@ -8659,7 +8737,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the issue",
"name": "index",
"in": "path",
@@ -8667,7 +8745,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of time to delete",
"name": "id",
"in": "path",
@@ -8725,12 +8803,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -8810,7 +8890,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the key to get",
"name": "id",
"in": "path",
@@ -8847,7 +8927,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the key to delete",
"name": "id",
"in": "path",
@@ -8890,12 +8970,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -8975,7 +9057,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the label to get",
"name": "id",
"in": "path",
@@ -9012,7 +9094,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the label to delete",
"name": "id",
"in": "path",
@@ -9051,7 +9133,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the label to edit",
"name": "id",
"in": "path",
@@ -9190,12 +9272,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -9501,12 +9585,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -9620,7 +9706,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "ID of the milestone",
"name": "milestone",
"in": "query"
@@ -9629,7 +9715,7 @@
"type": "array",
"items": {
"type": "integer",
- "format": "int64"
+ "format": "uint64"
},
"collectionFormat": "multi",
"description": "Label IDs",
@@ -9638,12 +9724,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -9807,7 +9895,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request to get",
"name": "index",
"in": "path",
@@ -9846,7 +9934,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request to edit",
"name": "index",
"in": "path",
@@ -9905,7 +9993,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request to get",
"name": "index",
"in": "path",
@@ -9959,7 +10047,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request to get",
"name": "index",
"in": "path",
@@ -9967,12 +10055,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -10023,7 +10113,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request to get",
"name": "index",
"in": "path",
@@ -10044,12 +10134,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -10088,7 +10180,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10126,7 +10218,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request to merge",
"name": "index",
"in": "path",
@@ -10180,7 +10272,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request to merge",
"name": "index",
"in": "path",
@@ -10226,7 +10318,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10275,7 +10367,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10329,7 +10421,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10337,12 +10429,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -10379,7 +10473,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10430,7 +10524,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10438,7 +10532,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the review",
"name": "id",
"in": "path",
@@ -10476,7 +10570,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10484,7 +10578,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the review",
"name": "id",
"in": "path",
@@ -10533,7 +10627,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10541,7 +10635,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the review",
"name": "id",
"in": "path",
@@ -10584,7 +10678,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10592,7 +10686,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the review",
"name": "id",
"in": "path",
@@ -10630,7 +10724,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10638,7 +10732,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the review",
"name": "id",
"in": "path",
@@ -10689,7 +10783,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10697,7 +10791,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the review",
"name": "id",
"in": "path",
@@ -10705,7 +10799,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the comment",
"name": "comment",
"in": "path",
@@ -10746,7 +10840,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10754,7 +10848,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the review",
"name": "id",
"in": "path",
@@ -10762,7 +10856,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the comment",
"name": "comment",
"in": "path",
@@ -10805,7 +10899,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10813,7 +10907,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the review",
"name": "id",
"in": "path",
@@ -10867,7 +10961,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request",
"name": "index",
"in": "path",
@@ -10875,7 +10969,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the review",
"name": "id",
"in": "path",
@@ -10921,7 +11015,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "index of the pull request to get",
"name": "index",
"in": "path",
@@ -10977,12 +11071,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -11251,12 +11347,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -11446,7 +11544,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the release to get",
"name": "id",
"in": "path",
@@ -11483,7 +11581,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the release to delete",
"name": "id",
"in": "path",
@@ -11525,7 +11623,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the release to edit",
"name": "id",
"in": "path",
@@ -11572,7 +11670,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the release",
"name": "id",
"in": "path",
@@ -11611,7 +11709,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the release",
"name": "id",
"in": "path",
@@ -11666,7 +11764,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the release",
"name": "id",
"in": "path",
@@ -11674,7 +11772,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the attachment to get",
"name": "attachment_id",
"in": "path",
@@ -11712,7 +11810,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the release",
"name": "id",
"in": "path",
@@ -11720,7 +11818,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the attachment to delete",
"name": "attachment_id",
"in": "path",
@@ -11759,7 +11857,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the release",
"name": "id",
"in": "path",
@@ -11767,7 +11865,7 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the attachment to edit",
"name": "attachment_id",
"in": "path",
@@ -11907,12 +12005,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -11978,12 +12078,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -12072,12 +12174,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -12205,12 +12309,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results, default maximum page size is 50",
"name": "limit",
"in": "query"
@@ -12560,12 +12666,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -12656,12 +12764,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -13121,12 +13231,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -13172,6 +13284,7 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
@@ -13245,7 +13358,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the repo to get",
"name": "id",
"in": "path",
@@ -13339,7 +13452,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the team to get",
"name": "id",
"in": "path",
@@ -13362,7 +13475,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the team to delete",
"name": "id",
"in": "path",
@@ -13419,7 +13532,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the team",
"name": "id",
"in": "path",
@@ -13434,12 +13547,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -13464,7 +13579,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the team",
"name": "id",
"in": "path",
@@ -13472,12 +13587,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -13502,7 +13619,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the team",
"name": "id",
"in": "path",
@@ -13533,7 +13650,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the team",
"name": "id",
"in": "path",
@@ -13564,7 +13681,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the team",
"name": "id",
"in": "path",
@@ -13597,7 +13714,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the team",
"name": "id",
"in": "path",
@@ -13605,12 +13722,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -13635,7 +13754,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the team",
"name": "id",
"in": "path",
@@ -13673,7 +13792,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the team",
"name": "id",
"in": "path",
@@ -13715,7 +13834,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the team",
"name": "id",
"in": "path",
@@ -13765,12 +13884,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -13890,12 +14011,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -13941,7 +14064,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "Application ID to be found",
"name": "id",
"in": "path",
@@ -13965,7 +14088,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "token to be deleted",
"name": "id",
"in": "path",
@@ -13989,7 +14112,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "application to be updated",
"name": "id",
"in": "path",
@@ -14143,12 +14266,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -14170,12 +14295,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -14304,12 +14431,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -14358,7 +14487,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of key to get",
"name": "id",
"in": "path",
@@ -14382,7 +14511,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of key to delete",
"name": "id",
"in": "path",
@@ -14411,12 +14540,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -14460,7 +14591,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the hook to get",
"name": "id",
"in": "path",
@@ -14481,7 +14612,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the hook to delete",
"name": "id",
"in": "path",
@@ -14503,7 +14634,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of the hook to update",
"name": "id",
"in": "path",
@@ -14539,12 +14670,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -14590,7 +14723,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of key to get",
"name": "id",
"in": "path",
@@ -14614,7 +14747,7 @@
"parameters": [
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "id of key to delete",
"name": "id",
"in": "path",
@@ -14643,12 +14776,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -14670,12 +14805,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -14700,12 +14837,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -14790,12 +14929,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -14907,12 +15048,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -14934,12 +15077,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -14961,12 +15106,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -14988,12 +15135,14 @@
"parameters": [
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -15063,19 +15212,21 @@
},
{
"type": "integer",
- "format": "int64",
+ "format": "uint64",
"description": "ID of the user to search for",
"name": "uid",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -15156,12 +15307,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -15193,12 +15346,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -15230,12 +15385,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -15298,12 +15455,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -15366,12 +15525,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -15403,12 +15564,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -15475,12 +15638,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -15512,12 +15677,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -15549,12 +15716,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
@@ -15586,12 +15755,14 @@
},
{
"type": "integer",
+ "format": "uint32",
"description": "page number of results to return (1-based)",
"name": "page",
"in": "query"
},
{
"type": "integer",
+ "format": "uint32",
"description": "page size of results",
"name": "limit",
"in": "query"
diff --git a/tests/admin.rs b/tests/admin.rs
index 06aed66..38d47ba 100644
--- a/tests/admin.rs
+++ b/tests/admin.rs
@@ -139,7 +139,7 @@ async fn key() {
.admin_create_public_key("KeyHolder", key_opt)
.await
.expect("failed to create key");
- api.admin_delete_user_public_key("KeyHolder", key.id.unwrap())
+ api.admin_delete_user_public_key("KeyHolder", key.id.unwrap() as u64)
.await
.expect("failed to delete key");
}
@@ -185,10 +185,10 @@ async fn hook() {
config: None,
events: None,
};
- api.admin_edit_hook(hook.id.unwrap(), edit_hook)
+ api.admin_edit_hook(hook.id.unwrap() as u64, edit_hook)
.await
.expect("failed to edit hook");
- api.admin_delete_hook(hook.id.unwrap())
+ api.admin_delete_hook(hook.id.unwrap() as u64)
.await
.expect("failed to delete hook");
}
diff --git a/tests/repo.rs b/tests/repo.rs
index 16566da..c9d6894 100644
--- a/tests/repo.rs
+++ b/tests/repo.rs
@@ -154,7 +154,7 @@ async fn pull_request() {
.expect("couldn't create pr");
let is_merged = api
- .repo_pull_request_is_merged("TestingAdmin", "pr-test", pr.number.unwrap())
+ .repo_pull_request_is_merged("TestingAdmin", "pr-test", pr.number.unwrap() as u64)
.await
.is_ok();
assert!(!is_merged, "pr should not yet be merged");
@@ -164,7 +164,7 @@ async fn pull_request() {
.repo_get_pull_request_files(
"TestingAdmin",
"pr-test",
- pr.number.unwrap(),
+ pr.number.unwrap() as u64,
pr_files_query,
)
.await
@@ -181,11 +181,16 @@ async fn pull_request() {
merge_when_checks_succeed: None,
};
- api.repo_merge_pull_request("TestingAdmin", "pr-test", pr.number.unwrap(), merge_opt)
- .await
- .expect("couldn't merge pr");
+ api.repo_merge_pull_request(
+ "TestingAdmin",
+ "pr-test",
+ pr.number.unwrap() as u64,
+ merge_opt,
+ )
+ .await
+ .expect("couldn't merge pr");
let is_merged = api
- .repo_pull_request_is_merged("TestingAdmin", "pr-test", pr.number.unwrap())
+ .repo_pull_request_is_merged("TestingAdmin", "pr-test", pr.number.unwrap() as u64)
.await
.is_ok();
assert!(is_merged, "pr should be merged");
@@ -243,7 +248,7 @@ async fn release() {
api.repo_edit_release(
"TestingAdmin",
"release-test",
- release.id.unwrap(),
+ release.id.unwrap() as u64,
edit_release,
)
.await
@@ -263,7 +268,7 @@ async fn release() {
.repo_create_release_attachment(
"TestingAdmin",
"release-test",
- release.id.unwrap(),
+ release.id.unwrap() as u64,
b"This is a file!".to_vec(),
RepoCreateReleaseAttachmentQuery {
name: Some("test.txt".into()),
@@ -276,8 +281,8 @@ async fn release() {
.download_release_attachment(
"TestingAdmin",
"release-test",
- release.id.unwrap(),
- attachment.id.unwrap()
+ release.id.unwrap() as u64,
+ attachment.id.unwrap() as u64
)
.await
.unwrap()
@@ -297,13 +302,13 @@ async fn release() {
api.repo_delete_release_attachment(
"TestingAdmin",
"release-test",
- release.id.unwrap(),
- attachment.id.unwrap(),
+ release.id.unwrap() as u64,
+ attachment.id.unwrap() as u64,
)
.await
.expect("failed to deleted attachment");
- api.repo_delete_release("TestingAdmin", "release-test", release.id.unwrap())
+ api.repo_delete_release("TestingAdmin", "release-test", release.id.unwrap() as u64)
.await
.expect("failed to delete release");