Skip to content

Commit 5081efc

Browse files
committed
Add a metadata field to ErrorResponse
1 parent 82fb2cb commit 5081efc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kube-core/src/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ pub struct ErrorResponse {
1515
pub reason: String,
1616
/// The error code
1717
pub code: u16,
18+
/// Optional metadata, present on at least some list api errors
19+
#[serde(skip_serializing_if = "Option::is_none")]
20+
pub metadata: Option<serde_json::Value>,
1821
}

0 commit comments

Comments
 (0)