{"action":"opened","issue":{"url":"https://api.github.com/repos/wcandillon/swagger-js-codegen/issues/58","labels_url":"https://api.github.com/repos/wcandillon/swagger-js-codegen/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/wcandillon/swagger-js-codegen/issues/58/comments","events_url":"https://api.github.com/repos/wcandillon/swagger-js-codegen/issues/58/events","html_url":"https://github.com/wcandillon/swagger-js-codegen/issues/58","id":57460877,"number":58,"title":"Proposal - add client side validation","user":{"login":"borisirota","id":5683472,"avatar_url":"https://avatars.githubusercontent.com/u/5683472?v=3","gravatar_id":"","url":"https://api.github.com/users/borisirota","html_url":"https://github.com/borisirota","followers_url":"https://api.github.com/users/borisirota/followers","following_url":"https://api.github.com/users/borisirota/following{/other_user}","gists_url":"https://api.github.com/users/borisirota/gists{/gist_id}","starred_url":"https://api.github.com/users/borisirota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borisirota/subscriptions","organizations_url":"https://api.github.com/users/borisirota/orgs","repos_url":"https://api.github.com/users/borisirota/repos","events_url":"https://api.github.com/users/borisirota/events{/privacy}","received_events_url":"https://api.github.com/users/borisirota/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-12T13:37:55Z","updated_at":"2015-02-12T13:37:55Z","closed_at":null,"body":"Currently there is support for required and partial support for pattern (is there a reason why its supported only in query parameters ?).\r\n\r\nI think that for the node client it can be very convenient right away.\r\nThe angular client is more complex because in order to provide a good user experience its need to be through the form validation mechanism.\r\n\r\nAnyway, I'm using the angular client and I'll try to think what is the best way to use one validation mechanism (based on the swagger spec) while still embracing angular forms -> I'm trying to use the swagger as one source of truth whenever I can without making manual syncing :wink:\r\n\r\nThe amazing [swagger-tools](https://github.com/apigee-127/swagger-tools) project already implemented this kind of validation but as a middleware for the server side. I submitted [this issue](https://github.com/apigee-127/swagger-tools/issues/148) in order to maybe taking advantage of that.\r\n\r\nI think that support for that will make this project even more awesome :)\r\n\r\n@wcandillon Is it something that you think should be part of this project ?\r\n\r\nBoris :)"}}