我对响应对象有以下api-blueprint描述:
+ Response 200 (application/hal+json)
+ Attributes (object)
+ `success`: `0` (number) - value for request
+ `error`: `999` (number) - error number in case of unsuccessful request
+ `error_text`: `foo` (string) - error message in case of unsuccessful request
我感兴趣的是可以定义一组示例值吗?假设我的成功属性只能包含值0和1,我想在上面的描述中显示它。
我以为我会写
+ `success`: `0,1` (number) - value for request
但是在这种情况下,我收到了无效的格式错误。