Skip to content

Commit fe05ec8

Browse files
authored
Merge pull request Azure#397 from kairu-ms/fix-additional-property-patch
Fix additional property patch
2 parents d6b3969 + 2b16598 commit fe05ec8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/aaz_dev/swagger/model/specs/_swagger_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _patch_list(lst):
4848
def _patch_dict(dct):
4949
# add `additionalProperties: true` to empty object
5050
if "type" in dct and dct["type"] == "object":
51-
if not {*dct.keys()} - {"type", "description"}:
51+
if not {*dct.keys()} - {"type", "description", "readOnly"}:
5252
dct["additionalProperties"] = True
5353

5454
for key in [*dct.keys()]:

0 commit comments

Comments
 (0)