+{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://json.schemastore.org/codecov","title":"JSON schema for Codecov configuration files","type":"object","definitions":{"default":{"type":["object","boolean"],"$comment":"See https://docs.codecov.com/docs/commit-status#basic-configuration","properties":{"target":{"type":["string","number"],"pattern":"^(([0-9]+\\.?[0-9]*|\\.[0-9]+)%|auto)$","default":"auto"},"threshold":{"type":"string","default":"0%","pattern":"^([0-9]+\\.?[0-9]*|\\.[0-9]+)%$"},"base":{"type":"string","default":"auto","deprecated":true},"flags":{"type":"array","default":[]},"paths":{"type":["array","string"],"default":[]},"branches":{"type":"array","default":[]},"if_not_found":{"type":"string","enum":["failure","success"],"default":"success"},"informational":{"type":"boolean","default":false},"only_pulls":{"type":"boolean","default":false},"if_ci_failed":{"type":"string","enum":["error","success"]},"flag_coverage_not_uploaded_behavior":{"type":"string","enum":["include","exclude","pass"]}}},"flag":{"type":"object","properties":{"joined":{"type":"boolean"},"required":{"type":"boolean"},"ignore":{"type":"array","items":{"type":"string"}},"paths":{"type":"array","items":{"type":"string"}},"assume":{"type":["boolean","array"],"items":{"type":"string"}}}},"layout":{"anyOf":[true,{"enum":["header","footer","diff","file","files","flag","flags","reach","sunburst","uncovered"]}]},"notification":{"type":"object","properties":{"url":{"type":"string"},"branches":{"type":"string"},"threshold":{"type":"string"},"message":{"type":"string"},"flags":{"type":"string"},"base":{"enum":["parent","pr","auto"]},"only_pulls":{"type":"boolean"},"paths":{"type":"array","items":{"type":"string"}}}}},"properties":{"codecov":{"type":"object","properties":{"url":{"type":"string"},"slug":{"type":"string"},"bot":{"type":"string"},"branch":{"type":"string"},"ci":{"type":"array","items":{"type":"string"}},"assume_all_flags":{"type":"boolean"},"strict_yaml_branch":{"type":"string"},"max_report_age":{"type":["string","integer","boolean"]},"disable_default_path_fixes":{"type":"boolean"},"require_ci_to_pass":{"type":"boolean"},"allow_pseudo_compare":{"type":"boolean"},"archive":{"type":"object","properties":{"uploads":{"type":"boolean"}}},"notify":{"type":"object","properties":{"after_n_builds":{"type":"integer"},"countdown":{"type":"integer"},"delay":{"type":"integer"},"wait_for_ci":{"type":"boolean"}}},"ui":{"type":"object","properties":{"hide_density":{"type":["boolean","array"],"items":{"type":"string"}},"hide_complexity":{"type":["boolean","array"],"items":{"type":"string"}},"hide_contextual":{"type":"boolean"},"hide_sunburst":{"type":"boolean"},"hide_search":{"type":"boolean"}}}}},"coverage":{"type":"object","properties":{"precision":{"type":"integer","minimum":0,"maximum":5},"round":{"enum":["down","up","nearest"]},"range":{"type":"string"},"notify":{"type":"object","properties":{"irc":{"type":"object","properties":{"url":{"type":"string"},"branches":{"type":"string"},"threshold":{"type":"string"},"message":{"type":"string"},"flags":{"type":"string"},"base":{"enum":["parent","pr","auto"]},"only_pulls":{"type":"boolean"},"paths":{"type":"array","items":{"type":"string"}},"channel":{"type":"string"},"password":{"type":"string"},"nickserv_password":{"type":"string"},"notice":{"type":"boolean"}}},"slack":{"type":"object","properties":{"url":{"type":"string"},"branches":{"type":"string"},"threshold":{"type":"string"},"message":{"type":"string"},"flags":{"type":"string"},"base":{"enum":["parent","pr","auto"]},"only_pulls":{"type":"boolean"},"paths":{"type":"array","items":{"type":"string"}},"attachments":{"$ref":"#/definitions/layout"}}},"gitter":{"type":"object","properties":{"url":{"type":"string"},"branches":{"type":"string"},"threshold":{"type":"string"},"message":{"type":"string"},"flags":{"type":"string"},"base":{"enum":["parent","pr","auto"]},"only_pulls":{"type":"boolean"},"paths":{"type":"array","items":{"type":"string"}}}},"hipchat":{"type":"object","properties":{"url":{"type":"string"},"branches":{"type":"string"},"threshold":{"type":"string"},"message":{"type":"string"},"flags":{"type":"string"},"base":{"enum":["parent","pr","auto"]},"only_pulls":{"type":"boolean"},"paths":{"type":"array","items":{"type":"string"}},"card":{"type":"boolean"},"notify":{"type":"boolean"}}},"webhook":{"type":"object","properties":{"url":{"type":"string"},"branches":{"type":"string"},"threshold":{"type":"string"},"message":{"type":"string"},"flags":{"type":"string"},"base":{"enum":["parent","pr","auto"]},"only_pulls":{"type":"boolean"},"paths":{"type":"array","items":{"type":"string"}}}},"email":{"type":"object","properties":{"url":{"type":"string"},"branches":{"type":"string"},"threshold":{"type":"string"},"message":{"type":"string"},"flags":{"type":"string"},"base":{"enum":["parent","pr","auto"]},"only_pulls":{"type":"boolean"},"paths":{"type":"array","items":{"type":"string"}},"layout":{"$ref":"#/definitions/layout"},"+to":{"type":"array","items":{"type":"string"}}}}}},"status":{"type":["boolean","object"],"additionalProperties":false,"properties":{"default_rules":{"type":"object"},"project":{"properties":{"default":{"$ref":"#/definitions/default"}},"additionalProperties":{"$ref":"#/definitions/default"}},"patch":{"$ref":"#/definitions/default"},"changes":{"$ref":"#/definitions/default"}}}}},"ignore":{"type":"array","items":{"type":"string"}},"fixes":{"type":"array","items":{"type":"string"}},"flags":{"oneOf":[{"type":"array","items":{"$ref":"#/definitions/flag"}},{"type":"object","additionalProperties":{"$ref":"#/definitions/flag"}}]},"comment":{"oneOf":[{"type":"object","properties":{"layout":{"$ref":"#/definitions/layout"},"require_changes":{"type":"boolean"},"require_base":{"type":"boolean"},"require_head":{"type":"boolean"},"branches":{"type":"array","items":{"type":"string"}},"behavior":{"enum":["default","once","new","spammy"]},"flags":{"type":"array","items":{"$ref":"#/definitions/flag"}},"paths":{"type":"array","items":{"type":"string"}}}},{"const":false}]}}}
0 commit comments