mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-09-03 11:18:58 +00:00
work on auto-generating parts of docs from JSONSchema
This commit is contained in:
@@ -4,12 +4,11 @@ sidebar:
|
||||
label: Parse
|
||||
order: 1
|
||||
---
|
||||
import SchemaInfo from '../../../../components/SchemaInfo.astro';
|
||||
|
||||
The `float.parse` processor takes a string and parses it as a float with the specified `base` and `bitSize`. This processor will return an error if the message being processed is not a string or if the string cannot be parsed into a float.
|
||||
|
||||
- **type**: `float.parse`
|
||||
- **params**:
|
||||
- **bitSize**: (optional) the bit size of the float to parse, defaults to 64
|
||||
<SchemaInfo type="processor" id="float.parse"/>
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@@ -4,14 +4,11 @@ sidebar:
|
||||
label: Random
|
||||
order: 2
|
||||
---
|
||||
import SchemaInfo from '../../../../components/SchemaInfo.astro';
|
||||
|
||||
The `float.random` processor will set the payload to a random float between the specified `min` and `max` value.
|
||||
|
||||
- **type**: `float.random`
|
||||
- **params**:
|
||||
- **bitSize**: (optional) the bit size of the float to generate, defaults to 32
|
||||
- **min**: the minimum value for the random float (inclusive).
|
||||
- **max**: the maximum value for the random float (exclusive).
|
||||
<SchemaInfo type="processor" id="float.random"/>
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user