cancel
Showing results for 
Search instead for 
Did you mean: 

Support properties for read and write

New Member

Support properties for read and write

Trying to write based on the openapi v3 spec and I can't seem to figure out how to mark "_id" property should only exist in GET but not in POST / PUT.

1 REPLY 1
Moderator

Re: Support properties for read and write

Mark the _id property as readOnly: true

 

More info: Read-only and write-only properties


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements