From 7c9d5fb0b5ca387b72d2a52fa776fa28dfa49c0e Mon Sep 17 00:00:00 2001 From: Tom Goren Date: Thu, 26 Sep 2024 09:21:49 -0700 Subject: [PATCH] Add i8 as supported type in docs --- docs/docs/content/number.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/docs/content/number.md b/docs/docs/content/number.md index fc702955..a8238928 100644 --- a/docs/docs/content/number.md +++ b/docs/docs/content/number.md @@ -1,11 +1,12 @@ -Synth's `number` type allows for generating fixed-width numbers. +Synth's `number` type allows for generating fixed-width numbers. -### Parameters +### Parameters #### `subtype` + All the variants of `number` accept an optional `"subtype"` field to specify the width and primitive kind of the values generated. The value of `"subtype"`, -if specified, must be one of `u64`, `i64`, `f64`, `u32`, `i32`, `f32`. +if specified, must be one of `u64`, `i64`, `f64`, `u32`, `i32`, `f32`, `i8`. #### Example @@ -32,6 +33,7 @@ will have different default behavior based on the value of `"subtype"`. - For float subtypes (`f32`, `f64`): `number` will default to generating from the semi-open interval `[0, 1)`. #### Example + ```json synth { "type": "number", @@ -40,6 +42,7 @@ will have different default behavior based on the value of `"subtype"`. ``` #### Example + ```json synth { "type": "number", @@ -198,4 +201,5 @@ Synth currently supports `u64` ids. } } } -``` \ No newline at end of file +``` +