Scalar schemaThe variant for a scalar value (null, boolean, integer, float, string, bytes), optionally restricted by enum.

This document describes the onyx-scalar-schema type — a meta-schema variant. Its formal schema is attached (the schemaDefinition in this document's metadata), so the app can show it and create values of this type.

Shape

A closed struct with these fields:

    type (required)string enum: null boolean integer float string bytes

    enum — list of any

    minLengthinteger

    maxLengthinteger

    patternstring

    minimuminteger

    maximuminteger

    namestring

    descriptionstring

    params — map ⟨ * : schema

Depends on

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime