Does it make sense to apply Required to a response schema field?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020
01:56 AM
07-27-2020
01:56 AM
Does it make sense to apply Required to a response schema field?
Up until now, I have set Required=true only for request schema fields. For response schema fields that I know won't be populated with null, I have set Nullable=false. Now, for the sake of Microsoft's AutoRest tool and the code it generates, I am being asked to set Required=true as well as Nullable=false for response fields.
Does this make sense semantically? To my mind, it doesn't. I know you can set Request=true for response fields, but does it make sense to do so?
0 REPLIES 0
