resticprofile icon indicating copy to clipboard operation
resticprofile copied to clipboard

JSON schema missing `unlimited` option for `--keep-*` flags in the retention and forget profile sections

Open asleeponpluto opened this issue 1 year ago • 1 comments

Both the v1 and v2 JSON schemas are missing the unlimited option for --keep-* flags in the retention and forget profile sections. These options are currently set to "type": "integer" and, instead, should be:

{
    "type": ["integer", "string"]
    "oneOf": [
        {
            "type": "integer"
        }, 
        {
            "type": "string",
            "enum": ["unlimited"]
        }
    ]
}

I think anyOf is fine here too, not totally sure on which is preferred in this case as I have never used JSON schema.

asleeponpluto avatar Jan 05 '25 00:01 asleeponpluto

that was definitely missed, thanks for the report 👍🏻

creativeprojects avatar Jan 13 '25 18:01 creativeprojects