Skip to content

Conversation

@maff
Copy link
Contributor

@maff maff commented Mar 23, 2015

Useful in cases where you want to set validation messages only manually (e.g. from an API response) and use angular-schema-form primarily to render forms. When this config option is set on in sf-options it will completely omit tv4 validation for the form. Example:

<form sf-schema="schema" sf-form="form" sf-model="model" sf-options="sf-options="{ tv4Validation: false }"></form>

@davidlgj
Copy link
Contributor

davidlgj commented Apr 4, 2015

Cool, this is a use case that never crossed my mind :) Do you still have a need for a schema? Would it be a good thing to be able to use it without a JSON Schema?

davidlgj added a commit that referenced this pull request Apr 4, 2015
Add global form option to disable tv4 validation
@davidlgj davidlgj merged commit 0d0b416 into json-schema-form:development Apr 4, 2015
@maff
Copy link
Contributor Author

maff commented Apr 21, 2015

For my use case I'm fine with JSON schema as I can generate all needed information on the backend.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants