Skip to content

Commit 31d6566

Browse files
committed
Change ServiceEndpoint description field to be optional
1 parent 1f4f28e commit 31d6566

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
- Change `ServiceEndpoint` field to be optional:
11+
- `description`
12+
1013
## [0.30.0]
1114

1215
### Changes

azure_devops_rust_api/src/service_endpoint/models.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,8 @@ pub struct ServiceEndpoint {
13121312
pub created_by: IdentityRef,
13131313
pub data: serde_json::Value,
13141314
#[doc = "Gets or sets the description of endpoint."]
1315-
pub description: String,
1315+
#[serde(default, skip_serializing_if = "Option::is_none")]
1316+
pub description: Option<String>,
13161317
#[doc = "This is a deprecated field."]
13171318
#[serde(
13181319
rename = "groupScopeId",
@@ -1364,7 +1365,6 @@ impl ServiceEndpoint {
13641365
authorization: EndpointAuthorization,
13651366
created_by: IdentityRef,
13661367
data: serde_json::Value,
1367-
description: String,
13681368
id: String,
13691369
is_ready: bool,
13701370
is_shared: bool,
@@ -1378,7 +1378,7 @@ impl ServiceEndpoint {
13781378
authorization,
13791379
created_by,
13801380
data,
1381-
description,
1381+
description: None,
13821382
group_scope_id: None,
13831383
id,
13841384
is_ready,

vsts-api-patcher/src/patcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,11 +1042,11 @@ impl Patcher {
10421042
// Excluded
10431043
// administratorsGroup
10441044
// operationStatus
1045+
// description
10451046
r#"[
10461047
"authorization",
10471048
"createdBy",
10481049
"data",
1049-
"description",
10501050
"id",
10511051
"isReady",
10521052
"isShared",

0 commit comments

Comments
 (0)