Skip to content

"merge" setting for mappings is broken [JIRA: RIAK-2549] #217

Description

@RJ

Two schema files. The second schema attempts to change the default value for a mapping, by specifying "merge":

$ cat 1.schema
{mapping, "test", "app.test", [
    {datatype, string},
    {default, "1"}
]}.

$ cat 2.schema
{mapping, "test", "app.test", [
    merge,
    {default, "2"}
]}.

Default hasn't changed, shouldn't it be "2"?

cuttlefish_schema:files(["1.schema", "2.schema"]).
{[],
 [#mapping{variable = ["test"],
           mapping = "app.test",default = "1",commented = undefined,
           datatype = [string],
           level = basic,doc = [],include_default = undefined,
           validators = [],is_merge = false,see = [],hidden = false}],
 []}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions