# Interface: ScaleSchema

Defined in: [schema.ts:520](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/schema.ts#L520)

A schema representing a return value or object property that is a number that should be rendered as a scale.

A scale is a widget with a repeated set of icons, where the number of shaded represents a numeric value. The canonical example of a scale is a star rating, which might show 5 star icons, with 3 of them shaded, indicating a value of 3.

## Extends

- `BaseNumberSchema`\<[`Scale`](../../enumerations/ValueHintType/#scale)>

## Properties

### codaType

> **codaType**: [`Scale`](../../enumerations/ValueHintType/#scale)

Defined in: [schema.ts:522](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/schema.ts#L522)

Instructs Coda to render this value as a scale.

#### Overrides

`BaseNumberSchema.codaType`

______________________________________________________________________

### description?

> `optional` **description**: `string`

Defined in: [schema.ts:285](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/schema.ts#L285)

A explanation of this object schema property shown to the user in the UI.

If your pack has an object schema with many properties, it may be useful to explain the purpose or contents of any property that is not self-evident.

#### Inherited from

`BaseNumberSchema.description`

______________________________________________________________________

### icon?

> `optional` **icon**: [`ScaleIconSet`](../../enumerations/ScaleIconSet/)

Defined in: [schema.ts:526](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/schema.ts#L526)

The icon to render.

______________________________________________________________________

### maximum?

> `optional` **maximum**: `number`

Defined in: [schema.ts:524](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/schema.ts#L524)

The number of icons to render.

______________________________________________________________________

### type

> **type**: [`Number`](../../enumerations/ValueType/#number)

Defined in: [schema.ts:314](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/schema.ts#L314)

Identifies this schema as relating to a number value.

#### Inherited from

`BaseNumberSchema.type`
