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.
Solved! Go to Solution.
Mark the _id property as readOnly: true
More info: Read-only and write-only properties
Mark the _id property as readOnly: true
More info: Read-only and write-only properties