Numeric types
Numeric types used throughout the protocol.
number
Section titled “number”Any numeric value (integer or decimal). The base JSON Schema type for numeric-derived scalars.
0$schema: https://json-schema.org/draft/2020-12/schema$id: number.yamltype: numberdescription: Any numeric value (integer or decimal). The base JSON Schema type for numeric-derived scalars.integer
Section titled “integer”A whole number without decimals.
0$schema: https://json-schema.org/draft/2020-12/schema$id: integer.yamltype: integerdescription: A whole number without decimals.decimalString
Section titled “decimalString”A decimal number (variable scale) encoded as a string to avoid floating-point issues.
"-100.5"$schema: https://json-schema.org/draft/2020-12/schema$id: decimalString.yamltype: stringexamples: - "-100.5" - "100.5" - "100"pattern: ^-?[0-9]+\.?[0-9]*$description: A decimal number (variable scale) encoded as a string to avoid floating-point issues./** A decimal number (variable scale) encoded as a string to avoid floating-point issues. */@pattern("^-?[0-9]+\\.?[0-9]*$", "Must be a valid decimal number represented as a string")@example("100")@example("100.5")@example("-100.5")@Versioning.added(Versions.v0_1)scalar decimalString extends string;