I had a deployment fail recently because I incorrectly indented a part of the file. We run this file against the bitbucket pipeline json schema to validate it, but didn't catch it.
I tried to copy and paste the pipeline here, but it somehow removes all the indentation. I'll do my best to fix it.
```
definitions:
steps:
- step: &build-docker-image
services:
- docker
```
The problem is that the `services` part should be indented one more time. So that it is accessible within the `step` object like `steps[0].step.services`. As opposed to being a sibling property of `step` like `steps[0].services`.
I don't know exactly why this issue is not caught by the json schema. When I look at it the `definitions` schema doesn't even have a property for `steps`. So I'm not sure how autocomplete is even working for that part of the file.