json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

Duplicated field mixing asterix and declaration #918

Closed amiceli closed 7 years ago

amiceli commented 7 years ago

Features

As a developer, when I define my form schema, I should be able to display remaning field with "*".

Expected behaviour

For example with that form definition :

vm.form  = [
    {
        "key"            : "name",
        validationMessage: {
            "nameContainsSpaces": "The name contains spaces"
        },
        $validators      : {
            nameContainsSpaces: function (value) {
                return !(angular.isString(value) && value.indexOf(' ') > 0);
            }
        }
    },
    '*',
    {
        type : "submit",
        title: "Save"
    }
];

My form must display name field with custom validators, and other field not explicit declared.

Actual behaviour

Currently name field is displayed twice.

Anthropic commented 7 years ago

See #748 this is in the alpha version already using the key "..."