From 168901fc27a1999bcb1390491241db663b6a5791 Mon Sep 17 00:00:00 2001 From: wojtekt Date: Tue, 12 Jun 2018 10:01:03 +0200 Subject: [PATCH] Update API conventions --- contributors/devel/api-conventions.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contributors/devel/api-conventions.md b/contributors/devel/api-conventions.md index 7a614fff0..0371f802a 100644 --- a/contributors/devel/api-conventions.md +++ b/contributors/devel/api-conventions.md @@ -755,6 +755,9 @@ must be specified as part of the value (e.g., `resource.Quantity`). Which approach is preferred is TBD, though currently we use the `fooSeconds` convention for durations. +Duration fields must be represented as integer fields with units being +part of the field name (e.g. `leaseDurationSeconds`). We don't use Duration +in the API since that would require clients to implement go-compatible parsing. ## Selecting Fields