Type parameter is not required

Contrary to the YAML specification, the type attribute is not required for the docker runner and can be omited for a pipeline kind.
(I didn’t check for the other runners)

See: drone-runner-docker/parser.go at 67e6ccef4361067e020fa1ddd084e6947c88c210 · drone-runners/drone-runner-docker · GitHub

Additionally: The schema from SchemaStore.org marks it as required.
(After an Intellij update that uses schema mapping from there, my .drone.yml file was marked as Not valid)

Contrary to the YAML specification, the type attribute is not required for the docker runner and can be omited for a pipeline kind.

The type attribute should be considered a required field. The reason it defaults to docker is because we needed to support legacy yaml files that were created before Drone had the concept of multiple runner types. However, you should not rely on this legacy behavior when creating new pipelines since, at some point, we will remove this legacy mapping and will fail a pipeline if the type attribute is missing.

Additionally: The schema from SchemaStore.org marks it as required.

We are not responsible for the schema at SchemaStore.org