Hi Prashanth,
The behaviour is not defined by the REST specification but rather by the JSON / JSONSchema specification.
TMForum OpenAPI v4 is based on swagger where some of the rules were still fuzzy.
TMForum OpenAPI v5 is based on the OAS3 which uses a dialect of JSON-Schema.
JSON-Schema by default uses an open content model. This means that additional fields can be added without breaking the validation rules. Applications should gracefully ignore the fields they don't understand. If a closed content model is required the JSON-Schema should have the additional property:"additionalProperties": false . As far as I know this is never used in the TMF OAS3 definitions.
The concept of immutable fields is a bit more difficult. JSON-Schema support the "readOnly" property to indicate that a field can't be written by an API (e.g. PATCH) but is still retrievable. To my knowledge this is also never used by the current TMForum OpenAPI specifications.
In my view the application that is going to ignore the value in case should report an error rather than ignoring a known field. This will avoid unexpected behaviour.
Not everything is captured in rules, so probably you will have to implement what you believe is common sense.
Regards
------------------------------
Koen Peeters
OryxGateway FZ LLC
------------------------------