eo-yaml: YamlIndentationException: Indentation of line 4 is greater than the one of line 3
Some of the YAML files, which this project is not able to parse.
apiVersion: v1
appVersion: 5.7.30
description: Fast, reliable, scalable, and easy to use open-source relational database
system.
home: https://www.mysql.com/
icon: https://www.mysql.com/common/logos/logo-mysql-170x115.png
keywords:
- mysql
- database
- sql
maintainers:
- email: o.with@sportradar.com
name: olemarkus
- email: viglesias@google.com
name: viglesiasce
name: mysql
sources:
- https://github.com/kubernetes/charts
- https://github.com/docker-library/mysql
version: 1.6.4
apiVersion: v1
name: tomcat
description: Deploy a basic tomcat application server with sidecar as web archive container
icon: http://tomcat.apache.org/res/images/tomcat.png
version: 0.4.1
appVersion: "7.0"
home: https://github.com/yahavb
maintainers:
- name: yahavb
email: ybiran@ananware.systems
Stack trace:
com.amihaiemil.eoyaml.exceptions.YamlIndentationException: Indentation of line 4 is greater than the one of line 3. It should be less or equal.
at com.amihaiemil.eoyaml.WellIndented.iterator(WellIndented.java:120)
at com.amihaiemil.eoyaml.SameIndentationLevel.iterator(SameIndentationLevel.java:74)
at com.amihaiemil.eoyaml.ReadYamlMapping.valueOfStringKey(ReadYamlMapping.java:182)
at com.amihaiemil.eoyaml.ReadYamlMapping.value(ReadYamlMapping.java:136)
at com.amihaiemil.eoyaml.YamlMapping.string(YamlMapping.java:147)
at com.amihaiemil.eoyaml.YamlMapping.string(YamlMapping.java:135)
at com.artipie.helm.TgzArchive.name(TgzArchive.java:82)
at com.artipie.helm.TarArchiveTest.nameIdentifiedCorrectly(TarArchiveTest.java:47)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Note: some of the YAML validators claims that those 2 files are actually valid ones
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (13 by maintainers)
@Sammers21 @g4s8 I just released version
5.1.0which allows you to bypass the validation of indentation.However, this might result in a different YAML than what you expect, so I only recommend you do it if you have proper tests for your code. More details here.
I’m closing this Issue now as I think all the related bugs have been fixed. Please feel free to open another one if you still have problems.