We can support both but in this case the validator will not be aware of the `Label` type anymore so it will validate any arrays.

Using a map will works
```
labels:
  key: value
```

Using a list of labels will work
```
labels:
  - key: key
    value: value1
```

The following will validate but create an invalid label in the database (not that it will not crash even at validation time)
```
labels:
  - toto: titi
```


Add support for a map of `labels` in the flow validator
### Feature description

We want to support both options for the definition of `labels`.

1. A list of key-value pairs:

```yaml
id: myflow
namespace: dev
labels:
  - key: team
    value: data
  - key: project
    value: dwh
```

2. A map of labels:

```yaml
id: myflow
namespace: dev
labels:
  team: data
  project: dwh
```

Initially, option 2 was the default. 
Now, option 1 is the default and the validator complains when using the Map syntax. 

Both work, but the validator currently only accepts the first option.

Both options are valid. This issue is to bring back support for the Map of labels on the schema for both web validator and VS Code extension.
core/src/main/java/io/kestra/core/models/flows/Flow.java
core/src/main/java/io/kestra/core/models/flows/Flow.java
diff --git a/core/src/main/java/io/kestra/core/models/flows/Flow.java b/core/src/main/java/io/kestra/core/models/flows/Flow.java
index bde1b57026..f1d3a59b12 100644
--- a/core/src/main/java/io/kestra/core/models/flows/Flow.java
+++ b/core/src/main/java/io/kestra/core/models/flows/Flow.java
@@ -10,6 +10,7 @@
 import io.kestra.core.exceptions.InternalException;
 import io.kestra.core.models.DeletedInterface;
 import io.kestra.core.models.Label;
+import io.kestra.core.models.annotations.PluginProperty;
 import io.kestra.core.models.executions.Execution;
 import io.kestra.core.models.listeners.Listener;
 import io.kestra.core.models.tasks.FlowableTask;
@@ -22,6 +23,7 @@
 import io.kestra.core.services.FlowService;
 import io.kestra.core.validations.FlowValidation;
 import io.micronaut.core.annotation.Introspected;
+import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.*;
 import lombok.experimental.SuperBuilder;
 import org.slf4j.Logger;
@@ -70,6 +72,7 @@ public boolean hasIgnoreMarker(final AnnotatedMember m) {
 
     @JsonSerialize(using = ListOrMapOfLabelSerializer.class)
     @JsonDeserialize(using = ListOrMapOfLabelDeserializer.class)
+    @Schema(implementation = Object.class, anyOf = {List.class, Map.class})
     List<Label> labels;
 
 
