Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RJ opened this issue May 9, 2016 · 0 comments
Open

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

RJ opened this issue May 9, 2016 · 0 comments

Comments

@RJ
Copy link

RJ commented May 9, 2016

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}],
 []}
@Basho-JIRA Basho-JIRA changed the title "merge" setting for mappings is broken "merge" setting for mappings is broken [JIRA: RIAK-2549] May 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants