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

Discussion : Frontend Form Validation #12

Open
surender7790 opened this issue Sep 11, 2017 · 5 comments
Open

Discussion : Frontend Form Validation #12

surender7790 opened this issue Sep 11, 2017 · 5 comments

Comments

@surender7790
Copy link
Contributor

How are we going to apply validation in frontend form?

@surender7790
Copy link
Contributor Author

@hemangsk

@hemangsk
Copy link
Member

How about we replicate all backend models in frontend and then validate fields before making the request?
For eg: replicate book model in frontend with

{
"author: {
"type": "string"
},
"year" : {
"type" : "string",
"length": 4
}

}

@surender7790
Copy link
Contributor Author

@hemangsk do you have any idea to implement frontend form validation.

@hemangsk
Copy link
Member

hemangsk commented Oct 3, 2017

@surender7790
Copy link
Contributor Author

We need to change its type only then.

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