尿酸偏高是什么意思| 大便变细是什么原因| 男人眉毛长代表什么| 太阳什么的什么的| 剖腹产坐月子可以吃什么水果| 火龙果有什么功效| 看望病人送什么东西| 已佚是什么意思| 拍花子是什么意思| 掉头发多是什么原因| 万里长城是什么生肖| qty什么意思| 阿司匹林肠溶片有什么副作用| 土克什么| 蔗去掉草字头读什么| 黄金的动物是什么生肖| 傍大款是什么意思| 经常吃海带有什么好处和坏处| 辣眼睛是什么意思| 痰多吃什么化痰| 尿检粘液丝高什么意思| 指甲变薄是什么原因| 男人好难做人好难是什么歌| 余田是什么字| 唐氏综合症是什么原因| 书字五行属什么| 拉肚子为什么会肚子疼| 胃疼检查什么项目| 消化腺包括什么| 为什么一个月来两次月经| 寻常疣是什么原因造成的| 抹茶是什么意思| 中度贫血吃什么补血最快| 常青藤是什么意思| 酒后吐吃什么可以缓解| 肾囊肿挂什么科| 白带异常吃什么药| bv是什么牌子| 猪肚是什么器官| 5月22日什么星座| 唇炎用什么药膏| 经心的近义词是什么| 红艳煞是什么意思| 王京读什么| 导语是什么| 鹦鹉吃什么食物| 怼人是什么意思| 高血脂会引起什么疾病| 吃什么排铅最快| 凤梨不能和什么一起吃| 玛瑙对人体有什么好处| maxrieny是什么品牌| 姨妈安全期是什么时候| 直肠肿瘤不能吃什么| 鱼油有什么功效| 不以为然是什么意思| 开车撞死猫有什么预兆| 3月29是什么星座| 痛风可以吃什么肉类和蔬菜| 米诺地尔搽剂和米诺地尔酊有什么区别| 不可一世是什么意思| 子宫囊肿严重吗有什么危害| paba是什么药| 过氧化氢浓度阳性是什么意思| 补阳气吃什么| 流明是什么意思| 山西的简称是什么| 什么是远视| 男人为什么喜欢大胸| 血脂高吃什么食物| 精子有点黄是什么原因| 羊水是什么| 乾隆是什么生肖| 帕金森病是什么病| 中华文化的精髓是什么| 杯弓蛇影的寓意是什么| 玖姿女装属于什么档次| 右小腿抽筋是什么原因| 总胆红素偏高是什么病| 大便干结吃什么药| 包粽子用什么米| 腹腔肠系膜淋巴结是什么病| resp是什么| 喉咙发炎吃什么药最好| 五行缺金是什么命| 妍字属于五行属什么| 人放屁多是什么原因| 坐月子吃什么水果| 脚趾头抽筋是什么原因引起的| 室上速是什么原因导致的| 为什么想吐却吐不出来| 什么是特需门诊| 省纪委副书记是什么级别| 梦到掉牙齿是什么意思| 吃紫菜有什么好处和坏处| 白带正常是什么颜色| 拉格啤酒是什么意思| 珩五行属什么| 口臭严重是什么原因| 属实是什么意思| 什么的猴子| 脚底板痛什么原因| 内秀是什么意思| 排骨炖山药有什么功效| 掉头发要吃什么| 爱情的本质是什么| 为什么会孕酮低| 去海边穿什么| 10月份是什么星座的| 工作效率等于什么| 湿气太重吃什么药| 宋威龙什么星座| 梦到点火是什么意思| 下眼皮肿是什么原因| 桃子有什么营养| 时辰宜忌是什么意思| 唐字五行属什么| 22年什么婚| 超敏c反应蛋白高说明什么| 筠字五行属什么| 停滞是什么意思| 什么地方看到的月亮最大| 三点水念什么| 血糖高的病人吃什么| 甲功能5项检查是查的什么| 孕妇脚抽筋是什么原因| 小孩不吃饭是什么原因| 嗓子哑是什么原因引起的| 上火喝什么茶效果最好| 牡蛎是什么东西| 3月3号是什么星座| 副处级干部是什么级别| 麒麟到了北极会变成什么| 什么叫皈依| 快闪店是什么意思| 交工是什么意思| 什么叫继发性高血压| 支气管炎吃什么消炎药| 看手指甲挂什么科室| 无为而治是什么意思| 什么是肝脏纤维化| 肾囊肿有什么危害| 脖子淋巴结肿大是什么原因| 让您费心了是什么意思| 花白鲢喂养什么长得快| 梦见黄瓜是什么意思| 院士是什么学位| 脸颊两侧长斑是什么原因怎么调理| cup什么意思| 今年78岁属什么生肖| 心窦过缓是什么原因| 耳朵老是痒是什么原因| 闭口粉刺是什么原因引起的| 吃什么补血| 勖是什么意思| 感冒什么症状| 送男人什么礼物最难忘| 茶油是什么油| 电动汽车什么牌子好| 松鼠尾巴有什么作用| 胃肠炎吃什么食物| 妈妈生日送什么| 供奉观音菩萨有什么讲究| 月经不规律吃什么药调理| 外交部发言人什么级别| 鼻涕有血丝是什么原因| 5公里25分钟什么水平| 暗送秋波是什么意思| 吃榴莲有什么好处和坏处| 耳朵有回音是什么原因| 为什么不能用红笔写名字| 茉莉龙珠是什么茶| 世界上最多的动物是什么| 为什么会胆汁反流| 为什么会得肺结核| 脑炎是什么病严重吗| 双鱼和什么星座最配| 拔牙后能吃什么| 杜仲泡水喝有什么功效| 补气血吃什么药| 荷尔蒙爆棚是什么意思| 鸡壳是什么| 财位在什么方位| 芦荟胶有什么用| 四不像是指什么动物| 螃蟹喜欢吃什么食物| 痛经是什么感觉| 牙周康又叫什么名字| 拉肚子吃什么消炎药| 喉咙有白痰是什么原因| 三伏天什么时候结束| 消化不良吃什么水果| 农历五月二十四是什么日子| 智商135是什么水平| 吃什么补钙| 脂溢性皮炎吃什么药| 红旗代表什么生肖| 小脑延髓池是什么意思| 夜尿频多是什么原因| 咖色搭配什么颜色好看| 什么蛇有毒| 2023是什么年| 1600年是什么朝代| 轻度脂肪肝吃什么药| bl小说是什么意思| 应激是什么意思| 手臂突然疼痛什么原因| 脸上发麻是什么原因| 长沙有什么好玩的| 新西兰现在是什么季节| 冰糖和白糖有什么区别| 月痨病是什么病| 日前是什么意思| 锶对人体有什么好处| 不生孩子的叫什么族| emo是什么意思| 甜蜜素是什么| 五心烦热吃什么药最快| 左手尾戒什么意思| 同房出血是什么原因造成的| 每天吃黄瓜有什么好处| 为什么警察叫条子| 什么叫元素| 品行是什么意思| 背上有痣代表什么| 为什么会眼压高| 做梦牙齿掉了是什么预兆| 手淫过度吃什么药调理| 嘴角长水泡是什么原因| 如何知道自己是什么星座| 放臭屁是什么原因| 盆腔ct能检查出什么病| ncu病房是什么意思| 贫血吃什么补血最快| 偏头痛什么原因引起的| 室上速是什么原因导致的| 黄体破裂是什么原因| 什么是飘窗| 红烧肉配什么菜好吃| 上朝是什么意思| 鹌鹑蛋不能和什么一起吃| vave是什么意思| 真丝香云纱是什么面料| 我们到底什么关系| 提莫是什么意思| 6月15日是什么星座| 碱性食物都有什么| 什么叫眩晕| 高尿酸血症是什么意思| 广东属于什么地区| 笼中鸟是什么意思| 耳朵不舒服是什么原因| 糖尿病人不能吃什么水果| 什么叫智齿牙| 梦见大水是什么意思| 1977年出生属什么生肖| 血管炎是什么病| 后背发凉是什么原因| 激光脱毛和冰点脱毛有什么区别| 业障是什么意思| 吃苹果是什么意思| cm和mm有什么区别| 什么是肾上腺素| 北京有什么好吃的| 百度
Skip to main content

百度 上述蚂蚁基金,前身是杭州数米基金销售有限公司,蚂蚁金服及恒生电子均为其股东。

You may see some of these common validation errors when creating, saving, or viewing issue forms.

Note

Issue forms are currently in public preview and subject to change.

Required top level key name is missing

The template does not contain a name field, which means it is not clear what to call your issue template when giving users a list of options.

Example of "required top level key name is missing" error

description: "Thank you for reporting a bug!"
...

The error can be fixed by adding name as a key.

name: "Bug report"
description: "Thank you for reporting a bug!"
...

key must be a string

This error message means that a permitted key has been provided, but its value cannot be parsed as the data type is not supported.

Example of "key must be a string" error

The description below is being parsed as a Boolean, but it should be a string.

name: "Bug report"
description: true
...

The error can be fixed by providing a string as the value. Strings may need to be wrapped in double quotes to be successfully parsed. For example, strings that contain ' must be wrapped in double quotes.

name: "Bug report"
description: "true"
...

Empty strings, or strings consisting of only whitespaces, are also not permissible when the field expects a string.

name: ""
description: "File a bug report"
assignees: "      "
...

The error can be fixed by correcting the value to be a non-empty string. If the field is not required, you should delete the key-value pair.

name: "Bug Report"
description: "File a bug report"
...

input is not a permitted key

An unexpected key was supplied at the top level of the template. For more information about which top-level keys are supported, see Syntax for issue forms.

Example of "input is not a permitted key" error

name: "Bug report"
hello: world
...

The error can be fixed by removing the unexpected keys.

name: "Bug report"
...

Forbidden keys

YAML parses certain strings as Boolean values. To avoid this, we have explicitly forbidden the usage of the following keys:

y, Y, yes, Yes, YES, n, N, no, No, NO, true, True, TRUE, false, False, FALSE, on, On, ON, off, Off, OFF

The error can be fixed by removing the forbidden keys.

Body must contain at least one non-markdown field

Issue forms must accept user input, which means that at least one of its fields must contain a user input field. A markdown element is static text, so a body array cannot contain only markdown elements.

Example of "body must contain at least one non-markdown field" error

name: "Bug report"
body:
- type: markdown
  attributes:
    value: "Bugs are the worst!"

The error can be fixed by adding non-markdown elements that accept user input.

name: "Bug report"
body:
- type: markdown
  attributes:
    value: "Bugs are the worst!"
- type: textarea
  attributes:
    label: "What's wrong?"

Body must have unique ids

If using id attributes to distinguish multiple elements, each id attribute must be unique.

Example of "body must have unique ids" error

name: "Bug report"
body:
- type: input
  id: name
  attributes:
    label: First name
- type: input
  id: name
  attributes:
    label: Last name

The error can be fixed by changing the id for one of these inputs, so that every input field has a unique id attribute.

name: "Bug report"
body:
- type: input
  id: name
  attributes:
    label: First name
- type: input
  id: surname
  attributes:
    label: Last name

Body must have unique labels

When there are multiple body elements that accept user input, the label attribute for each user input field must be unique.

Example of "body must have unique labels" error

name: "Bug report"
body:
- type: textarea
  attributes:
    label: Name
- type: textarea
  attributes:
    label: Name

The error can be fixed by changing the label attribute for one of the input fields to ensure that each label is unique.

name: "Bug report"
body:
- type: textarea
  attributes:
    label: Name
- type: textarea
  attributes:
    label: Operating System

Input fields can also be differentiated by their id attribute. If duplicate label attributes are required, you can supply at least one id to differentiate two elements with identical labels.

name: "Bug report"
body:
- type: textarea
  id: name_1
  attributes:
    label: Name
- type: textarea
  id: name_2
  attributes:
    label: Name

id attributes are not visible in the issue body. If you want to distinguish the fields in the resulting issue, you should use distinct label attributes.

Labels are too similar

Similar labels may be processed into identical references. If an id attribute is not provided for an input, the label attribute is used to generate a reference to the input field. To do this, we process the label by leveraging the Rails parameterize method. In some cases, two labels that are distinct can be processed into the same parameterized string.

Example of "labels are too similar" error

name: "Bug report"
body:
- type: input
  attributes:
    label: Name?
- type: input
  id: name
  attributes:
    label: Name???????

The error can be fixed by adding at least one differentiating alphanumeric character, -, or _ to one of the clashing labels.

name: "Bug report"
body:
- type: input
  attributes:
    label: Name?
- type: input
  attributes:
    label: Your name

The error can also be fixed by giving one of the clashing labels a unique id.

name: "Bug report"
body:
- type: input
  attributes:
    label: Name?
- type: input
  id: your-name
  attributes:
    label: Name???????

Checkboxes must have unique labels

When a checkboxes element is present, each of its nested labels must be unique among its peers, as well as among other input types.

Example of "checkboxes must have unique labels" error

name: "Bug report"
body:
- type: textarea
  attributes:
    label: Name
- type: checkboxes
  attributes:
    options:
    - label: Name

The error can be fixed by changing the label attribute for one of these inputs.

name: "Bug report"
body:
- type: textarea
  attributes:
    label: Name
- type: checkboxes
  attributes:
    options:
    - label: Your name

Alternatively, you can supply an id to any clashing top-level elements. Nested checkbox elements do not support the id attribute.

name: "Bug report"
body:
- type: textarea
  id: name_1
  attributes:
    label: Name
- type: checkboxes
  attributes:
    options:
    - label: Name

id attributes are not visible in the issue body. If you want to distinguish the fields in the resulting issue, you should use distinct label attributes.

Body[i]: required key type is missing

Each body block must contain the key type.

Errors with body will be prefixed with body[i] where i represents the zero-indexed index of the body block containing the error. For example, body[0] tells us that the error has been caused by the first block in the body list.

Example of "body[i]: required key type is missing" error

body:
- attributes:
    value: "Thanks for taking the time to fill out this bug! If you need real-time help, join us on Discord."

The error can be fixed by adding the key type with a valid input type as the value. For the available body input types and their syntaxes, see Syntax for GitHub's form schema.

body:
- type: markdown
  attributes:
    value: "Thanks for taking the time to fill out this bug! If you need real-time help, join us on Discord."

Body[i]: x is not a valid input type

One of the body blocks contains a type value that is not one of the permitted types.

Errors with body will be prefixed with body[i] where i represents the index of the body block containing the error. For example, body[0] tells us that the error has been caused by the first block in the body list.

Example of "body[i]: x is not a valid input type" error

body:
- type: x
  attributes:
    value: "Thanks for taking the time to fill out this bug! If you need real-time help, join us on Discord."

The error can be fixed by changing x to one of the valid types.

body:
- type: markdown
  attributes:
    value: "Thanks for taking the time to fill out this bug! If you need real-time help, join us on Discord."

Body[i]: required attribute key value is missing

One of the required value attributes has not been provided. The error occurs when a block does not have an attributes key or does not have a value key under the attributes key.

Errors with body will be prefixed with body[i] where i represents the index of the body block containing the error. For example, body[0] tells us that the error has been caused by the first block in the body list.

Example of "body[i]: required attribute key value is missing" error

body:
- type: markdown
  attributes:
    value: "Thanks for taking the time to fill out this bug! If you need real-time help, join us on Discord."
- type: markdown

The error in this example can be fixed by adding value as a key under attributes in the second list element of body.

body:
- type: markdown
  attributes:
    value: "Thanks for taking the time to fill out this bug! If you need real-time help, join us on Discord."
- type: markdown
  attributes:
    value: "This is working now!"

Body[i]: label must be a string

Within its attributes block, a value has the wrong data type.

Errors with body will be prefixed with body[i] where i represents the index of the body block containing the error. For example, body[0] tells us that the error has been caused by the first block in the body list.

Example of "body[i]: label must be a string" error

The label below is being parsed as a Boolean, but it should be a string.

body:
- type: markdown
  attributes:
    value: "Thanks for taking the time to fill out this bug! If you need real-time help, join us on Discord."
- type: textarea
  attributes:
    label: Bug Description
- type: textarea
  attributes:
    label: true

The error can be fixed by supplying a string value for label. If you want to use a label value that may be parsed as a Boolean, integer, or decimal, you should wrap the value in quotes. For example, "true" or "1.3" instead of true or 1.3.

- type: markdown
  attributes:
    value: "Thanks for taking the time to fill out this bug! If you need real-time help, join us on Discord."
- type: textarea
  attributes:
    label: Bug Description
- type: textarea
  attributes:
    label: Environment Details

Empty strings, or strings consisting of only whitespaces, are not permissible when an attribute expects a string. For example, "" or " " are not allowed.

If the attribute is required, the value must be a non-empty string. If the field is not required, you should delete the key-value pair.

body:
- type: input
  attributes:
    label: "Name"

Body[i]: id can only contain numbers, letters, -, _

id attributes can only contain alphanumeric characters, -, and _. Your template may include non-permitted characters, such as whitespace, in an id.

Errors with body will be prefixed with body[i] where i represents the index of the body block containing the error. For example, body[0] tells us that the error has been caused by the first block in the body list.

Example of "body[i]: id can only contain numbers, letters, -, _" error

name: "Bug report"
body:
- type: input
  id: first name
  attributes:
    label: First name

The error can be fixed by ensuring that whitespaces and other non-permitted characters are removed from id values.

name: "Bug report"
body:
- type: input
  id: first-name
  attributes:
    label: First name

Body[i]: x is not a permitted key

An unexpected key, x, was provided at the same indentation level as type and attributes.

Errors with body will be prefixed with body[i] where i represents the index of the body block containing the error. For example, body[0] tells us that the error has been caused by the first block in the body list.

Example of "body[i]: x is not a permitted key" error

body:
- type: markdown
  x: woof
  attributes:
    value: "Thanks for taking the time to fill out this bug! If you need real-time help, join us on Discord."

The error can be fixed by removing extra keys and only using type, attributes, and id.

body:
- type: markdown
  attributes:
    value: "Thanks for taking the time to fill out this bug! If you need real-time help, join us on Discord."

Body[i]: label contains forbidden word

To minimize the risk of private information and credentials being posted publicly in GitHub Issues, some words commonly used by attackers are not permitted in the label of input or textarea elements.

Errors with body will be prefixed with body[i] where i represents the index of the body block containing the error. For example, body[0] tells us that the error has been caused by the first block in the body list.

Example of "body[i]: label contains forbidden word" error

body:
- type: markdown
  attributes:
    value: Hello world!
- type: input
  attributes:
    label: Password

The error can be fixed by removing terms like "password" from any label fields.

body:
- type: markdown
  attributes:
    value: Hello world!
- type: input
  attributes:
    label: Username

Body[i]: x is not a permitted attribute

An invalid key has been supplied in an attributes block.

Errors with body will be prefixed with body[i] where i represents the index of the body block containing the error. For example, body[0] tells us that the error has been caused by the first block in the body list.

Example of "body[i]: x is not a permitted attribute" error

body:
- type: markdown
  attributes:
    x: "a random key!"
    value: "Thanks for taking the time to fill out this bug!"

The error can be fixed by removing extra keys and only using permitted attributes.

body:
- type: markdown
  attributes:
    value: "Thanks for taking the time to fill out this bug!"

Body[i]: options must be unique

For checkboxes and dropdown input types, the choices defined in the options array must be unique.

Errors with body will be prefixed with body[i] where i represents the index of the body block containing the error. For example, body[0] tells us that the error has been caused by the first block in the body list.

Example of "body[i]: options must be unique" error

body:
- type: dropdown
  attributes:
    label: Favorite dessert
    options:
      - ice cream
      - ice cream
      - pie

The error can be fixed by ensuring that no duplicate choices exist in the options array.

body:
- type: dropdown
  attributes:
    label: Favorite dessert
    options:
      - ice cream
      - pie

Body[i]: options must not include the reserved word, none

"None" is a reserved word in an options set because it is used to indicate non-choice when a dropdown is not required.

Errors with body will be prefixed with body[i] where i represents the index of the body block containing the error. For example, body[0] tells us that the error has been caused by the first block in the body list.

Example of "body[i]: options must not include the reserved word, none" error

body:
- type: dropdown
  attributes:
    label: What types of pie do you like?
    options:
      - Steak & Ale
      - Chicken & Leek
      - None
  validations:
    required: true

The error can be fixed by removing "None" as an option. If you want a contributor to be able to indicate that they like none of those types of pies, you can additionally remove the required validation.

body:
- type: dropdown
  attributes:
    label: What types of pie do you like?
    options:
      - Steak & Ale
      - Chicken & Leek

In this example, "None" will be auto-populated as a selectable option.

Body[i]: options must not include booleans. Please wrap values such as 'yes', and 'true' in quotes

There are a number of English words that become processed into Boolean values by the YAML parser unless they are wrapped in quotes. For dropdown options, all items must be strings rather than Booleans.

Errors with body will be prefixed with body[i] where i represents the index of the body block containing the error. For example, body[0] tells us that the error has been caused by the first block in the body list.

Example of "body[i]: options must not include booleans. Please wrap values such as 'yes', and 'true' in quotes" error

body:
- type: dropdown
  attributes:
    label: Do you like pie?
    options:
      - Yes
      - No
      - Maybe

The error can be fixed by wrapping each offending option in quotes, to prevent them from being processed as Boolean values.

body:
- type: dropdown
  attributes:
    label: Do you like pie?
    options:
      - "Yes"
      - "No"
      - Maybe

Body cannot be empty

The template body key:value pair cannot be empty. For more information about which top-level keys are required, see Syntax for issue forms.

The error can be fixed by adding the body: section.

Example of "body cannot be empty" error

name: Support Request
description: Something went wrong and you need help?
---
body:
- type: textarea
  attributes:
    label: "What's wrong?"

In this example, the error can be fixed by deleting the --- (document separator) between the headers and the body section.

name: Support Request
description: Something went wrong and you need help?

body:
- type: textarea
  attributes:
    label: "What's wrong?"

Further reading

意外流产有什么症状 什么解酒最好最快 你最喜欢的食物是什么 钧字五行属什么 白居易号什么居士
血糖高适合喝什么茶 什么龙戏珠 牙神经挑了为什么还疼 u盾是什么 中国四大发明是什么
产妇喝什么汤下奶最快最多 口红是用什么做的 98年属虎的是什么命 血燥吃什么好 慢性非萎缩性胃炎伴糜烂是什么意思
舌苔发白是什么病的前兆 老舍原名什么 虎父无犬子是什么意思 ra是什么病 乳房长什么样
吃什么补头发hcv7jop9ns2r.cn 小叶增生是什么原因导致的hcv9jop4ns2r.cn 女生下面是什么味道shenchushe.com 盆腔炎吃什么药1949doufunao.com 有何指教是什么意思shenchushe.com
舌头红是什么原因hcv9jop2ns6r.cn 药流有什么危害wzqsfys.com sys是什么意思hcv9jop3ns3r.cn 血沉偏高是什么原因helloaicloud.com 不修边幅是什么意思hcv8jop3ns5r.cn
恶心吃什么药hcv8jop0ns9r.cn 羊奶不能和什么一起吃hcv9jop1ns7r.cn 神经紊乱会出现什么症状hcv8jop4ns2r.cn 韩愈字什么hcv8jop9ns1r.cn 八仙过海指什么生肖hcv9jop5ns7r.cn
m2是什么意思hcv8jop3ns2r.cn 四月十七号是什么星座hcv9jop8ns3r.cn 上半身胖属于什么体质hcv8jop7ns5r.cn 夕阳红是什么意思hcv8jop9ns8r.cn 附件炎吃什么药最好wmyky.com
百度