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

Loose Schema #10

Open
mohsen1 opened this issue Mar 3, 2015 · 1 comment
Open

Loose Schema #10

mohsen1 opened this issue Mar 3, 2015 · 1 comment

Comments

@mohsen1
Copy link
Member

mohsen1 commented Mar 3, 2015

{} is a valid JSON Schema, it's a schema for any JSONObject. Should we allow this? If yes, how? This also raises the question about what should happen when additionalProperties is true?

One proposal is to allow user to enter key and value. Something like this:

<input title="key">:<input title="value">
<button>Add row</button>
@bvaughn
Copy link
Member

bvaughn commented Mar 3, 2015

formFor punts on the collections markup. It allows for the validation of collections (min length, max length, etc.) and items within the collection (full validation supported) but requires external user to add controls for adding/removing objects from the collection. (Items added to the collection may be complex items without default constructors. We're likely not talking about simple primitives.)

Example: http://bvaughn.github.io/angular-form-for/#/demo/collections-form

@bvaughn bvaughn mentioned this issue Mar 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants