Provide example data on definition properties#1091
Provide example data on definition properties#1091danpetitt wants to merge 1 commit intodomaindrivendev:masterfrom danpetitt:definition-property-example
Conversation
to show example data in a response model
|
Looks good, I like the idea! And the |
|
Yeah thats why i did it that way, as i saw it being emitted into the XMLComments; i was originally doing a custom attribute in my own OperationFilter and thought there may be a more native way to do this. |
1b3dcfa to
0996fa3
Compare
|
+1 For getting this merged |
|
+1 from me as well on this. Not only will this make it easier to get more rich information in the UI, but also improve documentation a lot for many. At least will it help the team im on here tremendously. This might also help on the issue reported on #1137, which we also are experiencing on many of our apis, by doing this correctly natively. |
By decorating a definition property with an xml comment, you will get proper 'live' sample data in the example section of a response.
Hope this is okay, not done many PRs before :-)