Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Sep 4, 2024
1 parent 24eee2b commit c7b27ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions schema/kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ const (

// UIntNKind represents a signed integer type with a width in bits specified by the Size field in the
// field definition.
// This is currently UNIMPLEMENTED, this notice will be removed when support is added.
// N must be a multiple of 8, and it is invalid for N to equal 8, 16, 32, 64 as there are more specific
// types for these widths.
// Go Encoding: []byte where len([]byte) == Size / 8, little-endian encoded.
Expand All @@ -216,6 +217,7 @@ const (

// IntNKind represents an unsigned integer type with a width in bits specified by the Size field in the
// field definition. N must be a multiple of 8.
// This is currently UNIMPLEMENTED, this notice will be removed when support is added.
// N must be a multiple of 8, and it is invalid for N to equal 8, 16, 32, 64 as there are more specific
// types for these widths.
// Go Encoding: []byte where len([]byte) == Size / 8, two's complement little-endian encoded.
Expand All @@ -225,6 +227,7 @@ const (
IntNKind

// StructKind represents a struct object.
// This is currently UNIMPLEMENTED, this notice will be removed when support is added.
// Go Encoding: an array of type []interface{} where each element is of the respective field's kind type.
// JSON Encoding: an object where each key is the field name and the value is the field value.
// Canonically, keys are in alphabetical order with no extra whitespace.
Expand All @@ -234,6 +237,7 @@ const (
StructKind

// OneOfKind represents a field that can be one of a set of types.
// This is currently UNIMPLEMENTED, this notice will be removed when support is added.
// Go Encoding: the anonymous struct { Case string; Value interface{} }, aliased as OneOfValue.
// JSON Encoding: same as the case's struct encoding with "@type" set to the case name.
// Key Binary Encoding: not valid as a key field.
Expand All @@ -242,6 +246,7 @@ const (
OneOfKind

// ListKind represents a list of elements.
// This is currently UNIMPLEMENTED, this notice will be removed when support is added.
// Go Encoding: an array of type []interface{} where each element is of the respective field's kind type.
// JSON Encoding: an array of values where each element is the field value.
// Canonically, there is no extra whitespace.
Expand Down

0 comments on commit c7b27ae

Please sign in to comment.