Skip to content

Add global form option to disable tv4 validation #313

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

Merged
merged 1 commit into from
Apr 4, 2015

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