Error in yaml file

I have a problem in running one lab at Ubuntu Windows 11 subservice. I’m getting error:
error: error parsing oldnginx.yaml: error converting YAML to JSON: yaml: line 26: did not find expected key

when trying to create from below yaml file:
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: oldnginx
type: canary
name: oldnginx
spec:
replicas: 3
selector:
matchLabels:
app: oldnginx
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: oldnginx
type: canary
spec:
containers:
- image: nginx:1.14
name: nginx
resources: {}
volumes:
- name: indexfile
configMap:
name: oldversion
status: {}

I tried debugging using yamlling but showed no errors

Hey @yasserhany,
It may be due to extra whitespaces.
Please check this useful tips - here