cancel
Showing results for 
Search instead for 
Did you mean: 

Support properties for read and write

SOLVED
jshao
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 ACCEPTED SOLUTION

Accepted Solutions
HKosova
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. ⬇️⬇️⬇️

View solution in original post

1 REPLY 1
HKosova
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. ⬇️⬇️⬇️

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements