We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d6b3969 + 2b16598 commit fe05ec8Copy full SHA for fe05ec8
1 file changed
src/aaz_dev/swagger/model/specs/_swagger_loader.py
@@ -48,7 +48,7 @@ def _patch_list(lst):
48
def _patch_dict(dct):
49
# add `additionalProperties: true` to empty object
50
if "type" in dct and dct["type"] == "object":
51
- if not {*dct.keys()} - {"type", "description"}:
+ if not {*dct.keys()} - {"type", "description", "readOnly"}:
52
dct["additionalProperties"] = True
53
54
for key in [*dct.keys()]:
0 commit comments