You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -246,9 +246,9 @@ Represents a fixed-length array, each position with its own type.
246
246
Represents a JSON object with a defined set of fields. `obj` fields are ordered and can be required or optional. Optional fields are usually defined at the end of the `fields` array. Even if in many languages objects are unordered, the order of fields in the schema is a useful feature as the field order can be used in documentation, code generation, and serialization to binary formats.
247
247
248
248
**Properties:**
249
-
-`fields` (array): Array of field nodes (see below).
250
-
-`unknownFields` (boolean, deprecated): Allow fields not listed.
251
-
-`encodeUnknownFields` (boolean): Emit unknown fields during encoding.
249
+
-`keys` (array): Array of field nodes (see below).
250
+
-`decodeUnknownKeys` (boolean, deprecated): Allow fields not listed.
251
+
-`encodeUnknownKeys` (boolean): Emit unknown fields during encoding.
252
252
-`validator` (string or array): Custom validation.
253
253
254
254
**Example:**
@@ -467,7 +467,7 @@ All nodes may contain the following metadata:
467
467
-**Type inference:** Types can be mapped to language types using the structure.
468
468
-**Optional and required fields:** Fields are required by default; set `optional: true` for optional fields.
469
469
-**Type composition:** Types can be nested and composed arbitrarily.
470
-
-**Unknown fields:** By default, unknown fields are rejected. Use `unknownFields: true` or `encodeUnknownFields: true` to allow or preserve them.
470
+
-**Unknown fields:** By default, unknown fields are rejected. Use `decodeUnknownKeys: true` or `encodeUnknownKeys: true` to allow or preserve them.
0 commit comments