# Models

## The PuzzleSubmission object

```json
{"openapi":"3.0.0","info":{"title":"Investec Developer - Puzzle Challenge","version":"1.4.2"},"components":{"schemas":{"PuzzleSubmission":{"type":"object","required":["name","email","imageDescription"],"properties":{"name":{"type":"string","minLength":1,"maxLength":100,"description":"Your name so we know who you are!"},"email":{"type":"string","format":"email","description":"Your email address so we can send you your prize!"},"imageDescription":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[a-zA-Z]+$","description":"What's the image in the background of the QR code? Let us know! One word!"}}}}}}
```

## The SuccessResponse object

```json
{"openapi":"3.0.0","info":{"title":"Investec Developer - Puzzle Challenge","version":"1.4.2"},"components":{"schemas":{"SuccessResponse":{"type":"object","properties":{"message":{"type":"string"}}}}}}
```

## The ErrorResponse object

```json
{"openapi":"3.0.0","info":{"title":"Investec Developer - Puzzle Challenge","version":"1.4.2"},"components":{"schemas":{"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"}}}}}}
```
