You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The properties id and name of ArmResource in typespec are required, but they are optional in swagger. And it caused breakings in JS. Also the required and readOnly limitations for input models are conflicting with between. How could customers feed a required param but readonly?
MaryGao
changed the title
The properties id and name of ArmResource in typespec are required which are optional in swagger
The properties id and name of ArmResource in typespec are in-consistant with their definition in swagger
Mar 12, 2024
From schema correctness perspective, required and read signify the properties are always available and only settable by service. You are guaranteed not to have null values. It is pretty clear and concise. The loose definition of the common-type swagger definition is not exactly right or helpful in generating good Client SDK models.
@MaryGao, can you elaborate on your scenario this is breaking? If this is for PATCH, the update model based on ARM op template will automatically strip out read only properties.
The properties id and name of ArmResource in typespec are required, but they are optional in swagger. And it caused breakings in JS. Also the required and readOnly limitations for input models are conflicting with between. How could customers feed a required param but readonly?
This is from the dicssion.
The text was updated successfully, but these errors were encountered: