Skip to content

Human schema parser incorrectly rejects schemas #913

@shaobo-he-aws

Description

@shaobo-he-aws

Before opening, please confirm:

Bug Category

Schemas and Validation

Describe the bug

Consider this schema,

entity type;

It should parse while the parser currently reports an error: unexpected token "type"

Expected behavior

It should parse.

Reproduction steps

echo 'entity type;' | cargo run translate-schema --direction human-to-json

Code Snippet

// Put your code below this line.

Log output

// Put your output below this line

Additional configuration

No response

Operating System

No response

Additional information and screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. This is as high priority issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions