Forum Discussion

MaximVasilenko's avatar
MaximVasilenko
New Contributor
5 years ago

Partial use of model attributes

Good afternoon! Please tell me what to do if in requestBody or response it is necessary to transfer not all attributes of the entity, but only the necessary ones. For example, there is a certain en...
  • HKosova's avatar
    HKosova
    5 years ago

    Hi Maxim,

     

    It's not possible to exclude properties from a schema. You need to do it the other way round - define a base schema with just the common properties, then inherit from that schema and add new properties.