Skip to content

Writing into array with same name but with and without leading * merges both array into one #656

@TobiasNx

Description

@TobiasNx

In principal it is possible to create elements and array with leading * as part of the name.

But if you write an array on the same level with same name but one with and one without leading *, the two disctinct arrays are merged:

See in example in playground.

Fix:

add_field("test.$append","TEST1")
add_field("*test.$append","TEST2")

Result:

test: "TEST1"
test: "TEST2"

Expected:

test: "TEST1"
*test: "TEST2"

This came up in #589 when transforming marc data to edm, since rdf-macro expects * as refrence marker.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions