doc: Add documentation for new RPCs and a FIXME: in fromschema.py

This commit is contained in:
adi2011
2022-06-24 07:09:12 +05:30
committed by neil saitug
parent 1450f1758c
commit 829fe09c13
15 changed files with 299 additions and 0 deletions

View File

@@ -127,6 +127,17 @@ def output_members(sub, indent=''):
# Remove deprecated and stub properties, collect warnings
# (Stubs required to keep additionalProperties: false happy)
# FIXME: It fails for schemas which have only an array type with
# no properties, ex:
# "abcd": {
# "type": "array",
# "items": {
# "type": "whatever",
# "description": "efgh"
# }
# }
# Checkout the schema of `staticbackup`.
for p in list(sub['properties'].keys()):
if len(sub['properties'][p]) == 0 or 'deprecated' in sub['properties'][p]:
del sub['properties'][p]