# Schema

Class · category: Other

Source: https://github.com/playcanvas/editor-api/blob/4303c34bcee9a418297350899ad3a3f555526ec4/src/schema.ts#L9

Provides methods to access the Editor schema.

## Constructors

### constructor

```ts
new Schema(schema: any)
```

Creates new instance of API

**Parameters**

- `schema` (`any`)

## Accessors

### assets

```ts
get assets(): AssetsSchema
```

Gets the assets schema

### components

```ts
get components(): ComponentSchema
```

Gets the component schema

### scene

```ts
get scene(): SceneSchema
```

Gets the scene schema

### schema

```ts
get schema(): any
```

Gets the schema

### settings

```ts
get settings(): SettingsSchema
```

Gets the settings schema

## Methods

### getType

```ts
getType(field: any, fixedLength?: number): string
```

Converts the specified schema field to a type recursively.

**Parameters**

- `field` (`any`)
- `fixedLength` (`number`, optional, default `0`)

**Returns** `string`
