Skip to content

Commit 90ee19f

Browse files
authored
chore: add bytes type (#308)
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
1 parent 886e2ed commit 90ee19f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

sdf/concepts/types.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,26 @@ types:
3838
3939
String is a sequence of characters. It is defined as `string` type.
4040

41+
```yaml
42+
types:
43+
my-type:
44+
type: string
45+
```
46+
47+
<hr />
48+
49+
## Bytes
50+
51+
For raw binary data, we can use the `bytes` type. It is represented as a sequence of `u8`.
52+
53+
Example:
54+
55+
```yaml
56+
types:
57+
raw-data:
58+
type: bytes
59+
```
60+
4161
<hr />
4262

4363
## Object

0 commit comments

Comments
 (0)