Skip to content

Commit

Permalink
Merge branch 'master' into patch-readme-enum
Browse files Browse the repository at this point in the history
  • Loading branch information
ailisp authored Nov 21, 2023
2 parents ab3a8f7 + b6a6838 commit 0d5bd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ More complex objects are described by a JSON object. The following types are sup
- `{ option: Schema }` - an optional object. The type of the object is described by the `type` field.
- `{ map: { key: Schema, value: Schema }}` - a map. The type of the keys and values are described by the `key` and `value` fields respectively.
- `{ set: Schema }` - a set. The type of the elements is described by the `type` field.
- `{ enum: [ { struct: { className1: structSCHEMA } }, { struct: { className2: structSCHEMA } }, ... ] }` - an enum. An enum is a vector of `struct schemas` with a single key (the `className`), and the structure of that variant as a value.
- `{ enum: [ { struct: { className1: structSchema1 } }, { struct: { className2: structSchema2 } }, ... ] }` - an enum. The variants of the enum are described by the `className1`, `className2`, etc. fields. The variants are structs.
- `{ struct: { field1: Schema1, field2: Schema2, ... } }` - a struct. The fields of the struct are described by the `field1`, `field2`, etc. fields.

### Type Mappings
Expand Down

0 comments on commit 0d5bd56

Please sign in to comment.