Skip to content

What are the supported formats inside an entity #22

@moufmouf

Description

@moufmouf

I just discovered Neon and love the way it works. Especially, I love the notion of entity.

Now, I have a question about the supported syntax inside an Entity.

I've noticed that this is OK:

entity0: Column(name=Homer, phones=[ home: 555-6528, work: 555-7334 ])

This is ok too:

entity: Column(
    name: Homer
    phones: [ home: 555-6528, work: 555-7334 ]
)

But this yields what I would deem to be an unexpected result:

entity2: Column(
    name: Homer
    phones:
        home: 555-6528
        work: 555-7334
)

In the attributes array, "home" and "work" are at the same level as "name" and "phones". I would have expected those keys to be in the "phones" key.

Also, this piece of code fails to parse:

entity2: Column(
    name: Homer
    phones:
     - 555-6528
     - 555-7334
)

Is this considered a bug? If not, is there a specification of the NEON format somewhere explaining what is ok and what is not?
Could this be considered as a possible enhancement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions