## Schema


A schema for parsing and validating structured data.


Usage


``` python
Schema(definition)
```


## Parameters


`definition: dict`  
The schema definition.


## Examples

``` python
>>> s = Schema({"type": "object"})
>>> s.parse({"key": "value"})
{'key': 'value'}
```


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) | Initialize the schema. |
| [parse()](#parse) | Parse data according to the schema. |

------------------------------------------------------------------------


#### \_\_init\_\_()


Initialize the schema.


Usage


``` python
__init__(definition)
```


##### Parameters


`definition: dict`  
The schema definition.


------------------------------------------------------------------------


#### parse()


Parse data according to the schema.


Usage


``` python
parse(data)
```


##### Parameters


`data: dict`  
The data to parse.


##### Returns


`dict`  
The parsed data.
