Skip to content

sjsonnet allows unquoted field names that start with a number #159

@nicklan

Description

@nicklan

You can process this file with sjsonnet:

{
  1_n: "foo",
}

This is against the spec which says that an id (unquoted) fieldname must match: [_a-zA-Z][_a-zA-Z0-9]*

go-jsonnet agrees:

/tmp/n.jsonnet:2:3-4 Unexpected: (NUMBER, "1") while parsing field definition

  1_n: "foo"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions