From 0b2c63f3166d7fc55e53960c84fb0c11e5aa1d0a Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Tue, 16 Jul 2024 19:58:32 +0200 Subject: [PATCH] feat: :sparkles: Allow null in optional fields --- docs/spec.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/spec.md b/docs/spec.md index be58663..637d318 100644 --- a/docs/spec.md +++ b/docs/spec.md @@ -42,6 +42,10 @@ Examples: - A `size` (bytes) property on a file object should be treated as an unsigned 64-bit integer. - A `duration` property on a video object should be treated as an unsigned 64-bit float. +## Optional Fields + +Fields marked as "optional" may be set to `null` or omitted entirely. If a field is omitted, it is assumed to be `null`, unless it is not in the object's schema. + ## HTTP All HTTP request and response bodies **MUST** be encoded as UTF-8 JSON, with the `Content-Type` header set to `application/json; charset=utf-8`. Appropriate signatures must be included in the `Signature` header for **every request and response**.