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

DataAnnotations not included in generated #14

Open
parkinsona opened this issue Sep 4, 2014 · 6 comments
Open

DataAnnotations not included in generated #14

parkinsona opened this issue Sep 4, 2014 · 6 comments

Comments

@parkinsona
Copy link

Hi,

Thanks for the awesome proxy generator and the client. I have noticed that in the WebApiProxySource.cs that the Model class that is generated from the proxy does not include any of the data annotations from the web api model. Is there a way to get these included?

@faniereynders
Copy link
Member

Hi @parkinsona thanks. Do you want to be able to generate validation from the model?

@parkinsona
Copy link
Author

Being able to generate validation from the model would be great.

@parkinsona
Copy link
Author

Any thoughts on how I could get validation from the model?

@faniereynders
Copy link
Member

Hi @parkinsona, at the moment only the basic meta data is transferred. I will look into putting a feat like this in the future. Thanks!

@wolfen351
Copy link
Collaborator

Wow this is a great idea. I think we could possibly include a .config file parameter to decide if we want the annotations or not.

Does anyone know an easy way to reflect the annotations off the methods server side?

@faniereynders
Copy link
Member

@faniereynders faniereynders changed the title Dataannotations not included in generated DataAnnotations not included in generated Jan 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants