JsonType

Represents the base data types defined in the JSON Schema specification.

These types are used to constrain the values of properties within a JsonSchema.

Report a problem

Entries

Link copied to clipboard

An ordered list of instances.

Link copied to clipboard

An unordered set of properties.

Link copied to clipboard

Any numeric value, including integers and floating-point numbers.

Link copied to clipboard

A true or false value.

Link copied to clipboard

A numeric value with no fractional part.

Link copied to clipboard

A null value.

Link copied to clipboard

A sequence of characters.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
Link copied to clipboard
fun valueOf(value: String): JsonType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.