Skip to content

[backport] YAML editor barfs on sequences #1694

Closed

Description

@BoykoAlex

Port into 4.x stream #1660

Error in editor:

Expecting a 'Object' but got a 'Sequence' node vscode-spring-boot(YAML_EXPECT_TYPE_FOUND_SEQUENCE)

Looks like it is emitted by this tooling? You get it when the YAML contains a sequence (a.k.a. array). Example:

spring:
  application:
    name: hello
  grpc:
    client:
      default-channel:
        negotiation-type: plaintext
        address: localhost:9092
        service-config:
          methodConfig:
            - name:
                - service: "com.dm4nk.gradlesandbox.user.proto.v1.UserService"
                  method: "User"
              retryPolicy:
                maxAttempts: "5"
                initialBackoff: "0.5s"
                maxBackoff: "1s"
                backoffMultiplier: "2"
                retryableStatusCodes: "UNAVAILABLE,UNKNOWN"

The YAML is legal. The target bean that it binds to doesn't know about the sequences (it's just Map<String,Object>), so maybe the error comes from that side?

Activity

  1. added this to the 4.32.1.RELEASE milestone on Oct 24, 2025
  2. BoykoAlex commented on Oct 24, 2025

    @BoykoAlex
    ContributorAuthor

    Fixed via 0001b2c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions