mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 22:38:19 +01:00
feat: ✨ Allow null in optional fields
This commit is contained in:
parent
f92e74b438
commit
0b2c63f316
|
|
@ -42,6 +42,10 @@ Examples:
|
||||||
- A `size` (bytes) property on a file object should be treated as an unsigned 64-bit integer.
|
- 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.
|
- 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
|
## 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**.
|
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**.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue