From 1e283c9d7341c1fac4a02916913adde3edbe6b22 Mon Sep 17 00:00:00 2001 From: martinforejt Date: Wed, 15 Oct 2025 09:31:29 +0200 Subject: [PATCH] docs: Float number support in input schema --- .../input_schema/specification.md | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/sources/platform/actors/development/actor_definition/input_schema/specification.md b/sources/platform/actors/development/actor_definition/input_schema/specification.md index c1d234881..7651f4d6b 100644 --- a/sources/platform/actors/development/actor_definition/input_schema/specification.md +++ b/sources/platform/actors/development/actor_definition/input_schema/specification.md @@ -308,7 +308,12 @@ Properties: | `groupDescription` | String | No | Description displayed as help text
displayed of group title. | | `nullable` | Boolean | No | Specifies whether null is
an allowed value. | -### Integer +### Numeric types + +There are two numeric types supported in the input schema: `integer` and `number`. + +- The `integer` type represents whole numbers. +- The `number` type can represent both integers and floating-point numbers. Example: @@ -329,13 +334,14 @@ Rendered input: Properties: -| Property | Value | Required | Description | -| --- | --- | --- | --- | -| `editor` | One of: | No | Visual editor used for input field. | -| `maximum` | Integer | No | Maximum allowed value. | -| `minimum` | Integer | No | Minimum allowed value. | -| `unit` | String | No | Unit displayed next to the field in UI,
for example _second_, _MB_, etc. | -| `nullable` | Boolean | No | Specifies whether null is an allowed value. | +| Property | Value | Required | Description | +|------------|-----------------------------------------------------|----------|-------------------------------------------------------------------------------| +| `type` | One of | Yes | Defines the type of the field — either an integer or a floating-point number. | +| `editor` | One of: | No | Visual editor used for input field. | +| `maximum` | Integer or Number
(based on the `type`) | No | Maximum allowed value. | +| `minimum` | Integer or Number
(based on the `type`) | No | Minimum allowed value. | +| `unit` | String | No | Unit displayed next to the field in UI,
for example _second_, _MB_, etc. | +| `nullable` | Boolean | No | Specifies whether null is an allowed value. | ### Object