lsl_definitions.yaml malformed
tracked
Artesia Heartsong
At line 23 and 14330, the indentation isn't correct rendering the definition file, which should be a hierarchical: enums: and rulesets: should be left aligned.
Validated online with different tools, unsuccessfully (Yaml Lint, etc)
Log In
H
Harold Linden
Artesia Heartsong Are you having trouble parsing this with a specific library / tool? We run several YAML lints in CI and none of them complain about the current YAML. https://www.yamllint.com/ also seems to think it's valid.
Also, since this isn't used in any release it's best to file bugs over at https://github.com/secondlife/lsl-definitions
Maestro Linden
marked this post as
tracked
Maestro Linden
I do see some complaints from yamllint utility (version 1.38.0) when processing https://raw.githubusercontent.com/secondlife/lsl-definitions/refs/heads/main/lsl_definitions.yaml , along the lines of:
error line too long (135 > 80 characters)
warning comment not indented like content (comments-indentation)
warning too few spaces before comment (comments)
error wrong indentation: expected 6 but found 4 (indentation)
I think the "max 80 characters" expectation by that tool is not reasonable, but some of the indentation complaints might be fair.
I _don't_ see the complaints about Nested mappings or Implicit keys on line 22. It also appears that other validators like https://yamline.com/validator/ are 100% happy with the formatting.
I've imported this issue to the public repo at https://github.com/secondlife/lsl-definitions/issues/112
Maestro Linden
marked this post as
under review