[Kimchi-devel] [PATCH v5 01/10] Debug Report Rename: Update API.json

Aline Manera alinefm at linux.vnet.ibm.com
Sun Jul 13 16:52:04 UTC 2014



On 07/11/2014 06:17 AM, Hongliang Wang wrote:
> Update API.json for validation.
>
> Signed-off-by: Hongliang Wang <hlwang at linux.vnet.ibm.com>
> ---
>   src/kimchi/API.json | 11 +++++++++++
>   1 file changed, 11 insertions(+)
>
> diff --git a/src/kimchi/API.json b/src/kimchi/API.json
> index d635d2c..9b6705f 100644
> --- a/src/kimchi/API.json
> +++ b/src/kimchi/API.json
> @@ -41,6 +41,17 @@
>                   }
>               }
>           },
> +        "debugreport_update": {
> +            "type": "object",
> +            "properties": {
> +                "name": {
> +                    "description": "New name of debug report",
> +                    "type": "string",
> +                    "pattern": "^[A-Za-z0-9-]*$",

A patch, recently merged, changed this regex to

"pattern": "^[_A-Za-z0-9-]*$",

You can check the debugreports_create in API.json


> +                    "error": "KCHDR0007E"
> +                }
> +            }
> +        },
>           "storagepools_create": {
>               "type": "object",
>               "error": "KCHPOOL0026E",
>




More information about the Kimchi-devel mailing list