Skip to content

convert (conv) - Signal that type conversion is occurring

The convert keyword is a semantic addon to indicate that type conversion is occurring.

NOTE: The convert keyword is completely optional and has no impact on functionality. It is designed to aid readability.

Syntax

(conv|convert) [datatypes] <keypath1>:<datatype1>,<keypath2>:<datatype2>,...

Example - Basic usage

convert is a semantic token only, meaning it has no baring on functionality, and adding it should be done to aid readability, for example:

convert datatypes status_code:number

Using convert datatypes here makes it extremely clear what is happening to the field status_code.