Skip to content
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Change `ServiceEndpoint` field to be optional:
- `description`

## [0.30.0]

### Changes
Expand Down
6 changes: 4 additions & 2 deletions azure_devops_rust_api/examples/service_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ async fn main() -> Result<()> {
// Display the returned service endpoints
for endpoint in service_endpoints.iter() {
println!(
"{:38} {:40} {}",
endpoint.id, endpoint.name, endpoint.description
"{:38} {:40} {:?}",
endpoint.id,
endpoint.name,
endpoint.description.as_deref().unwrap_or("")
);
}

Expand Down
6 changes: 3 additions & 3 deletions azure_devops_rust_api/src/service_endpoint/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,8 @@ pub struct ServiceEndpoint {
pub created_by: IdentityRef,
pub data: serde_json::Value,
#[doc = "Gets or sets the description of endpoint."]
pub description: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[doc = "This is a deprecated field."]
#[serde(
rename = "groupScopeId",
Expand Down Expand Up @@ -1364,7 +1365,6 @@ impl ServiceEndpoint {
authorization: EndpointAuthorization,
created_by: IdentityRef,
data: serde_json::Value,
description: String,
id: String,
is_ready: bool,
is_shared: bool,
Expand All @@ -1378,7 +1378,7 @@ impl ServiceEndpoint {
authorization,
created_by,
data,
description,
description: None,
group_scope_id: None,
id,
is_ready,
Expand Down
2 changes: 1 addition & 1 deletion vsts-api-patcher/src/patcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,11 +1042,11 @@ impl Patcher {
// Excluded
// administratorsGroup
// operationStatus
// description
r#"[
"authorization",
"createdBy",
"data",
"description",
"id",
"isReady",
"isShared",
Expand Down