> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gobl.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Condition

Condition provides a more formal structure for describing with a specific code what has been unacceptable about the source document, including potentially references to the fields causing issues.

## Schema ID

`https://gobl.org/draft-0/bill/status#/$defs/Condition`

## Properties

| Title   | Property  | Type                          | Description                                                                                                                              |
| ------- | --------- | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Code    | `code`    | [cbc.Code](/draft-0/cbc/code) | Code is generated by the system that raised the condition.                                                                               |
| Paths   | `paths`   | array of string               | Paths contains an array of JSON paths that maps the GOBL specific error to a field inside the envelope that the condition is applied to. |
| Message | `message` | string                        | Message contains human readable details about the specific condition.                                                                    |

## Validation Rules

| Field  | Test                                                                  | Validation Code / Message                                |
| ------ | --------------------------------------------------------------------- | -------------------------------------------------------- |
| `code` | <ul class="gobl-test"><li class="gobl-test-present">Present</li></ul> | `GOBL-BILL-CONDITION-01`<br />Condition code is required |
