[book/validation] fixed code block formatting

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | -
| Applies to    | 2.3+
| Fixed tickets | -