Expected block end YAML error

后端 未结 6 939

When pasting this YAML file into an online yaml parser, I got an expected block end error:

ADDATTEMPTING: \'Tentative d ajout \'
ATTEMPTINGTOGIVE: \'Tenter de do         


        
6条回答
  •  半阙折子戏
    2021-02-05 02:02

    This error also occurs if you use four-space instead of two-space indentation.

    e.g., the following would throw the error:

    fields:
        - metadata: {}
            name: colName
            nullable: true
    

    whereas changing indentation to two-spaces would fix it:

    fields:
      - metadata: {}
        name: colName
        nullable: true
    

提交回复
热议问题