Skip to content

Commit 6bb14a7

Browse files
authored
Update ty's JSON schema (SchemaStore#4706)
1 parent 911457b commit 6bb14a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/schemas/json/ty.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"type": ["boolean", "null"]
2121
},
2222
"rules": {
23-
"description": "Configures the enabled rules and their severity.\n\nSee [the rules documentation](https://github.com/astral-sh/ruff/blob/main/crates/ty/docs/rules.md) for a list of all available rules.\n\nValid severities are:\n\n* `ignore`: Disable the rule. * `warn`: Enable the rule and create a warning diagnostic. * `error`: Enable the rule and create an error diagnostic. ty will exit with a non-zero code if any error diagnostics are emitted.",
23+
"description": "Configures the enabled rules and their severity.\n\nSee [the rules documentation](https://ty.dev/rules) for a list of all available rules.\n\nValid severities are:\n\n* `ignore`: Disable the rule. * `warn`: Enable the rule and create a warning diagnostic. * `error`: Enable the rule and create an error diagnostic. ty will exit with a non-zero code if any error diagnostics are emitted.",
2424
"anyOf": [
2525
{
2626
"$ref": "#/definitions/Rules"
@@ -541,7 +541,7 @@
541541
},
542542
"invalid-type-form": {
543543
"title": "detects invalid type forms",
544-
"description": "## What it does\nChecks for expressions that are used as type expressions\nbut cannot validly be interpreted as such.\n\n## Why is this bad?\nSuch expressions cannot be understood by ty.\nIn some cases, they might raise errors at runtime.\n\n## Examples\n```python\nfrom typing import Annotated\n\na: type[1] # `1` is not a type\nb: Annotated[int] # `Annotated` expects at least two arguments\n```",
544+
"description": "## What it does\nChecks for expressions that are used as [type expressions]\nbut cannot validly be interpreted as such.\n\n## Why is this bad?\nSuch expressions cannot be understood by ty.\nIn some cases, they might raise errors at runtime.\n\n## Examples\n```python\nfrom typing import Annotated\n\na: type[1] # `1` is not a type\nb: Annotated[int] # `Annotated` expects at least two arguments\n```\n[type expressions]: https://typing.python.org/en/latest/spec/annotations.html#type-and-annotation-expressions",
545545
"default": "error",
546546
"oneOf": [
547547
{
@@ -818,7 +818,7 @@
818818
"type": "object",
819819
"properties": {
820820
"root": {
821-
"description": "The root(s) of the project, used for finding first-party modules.",
821+
"description": "The root of the project, used for finding first-party modules.",
822822
"type": ["string", "null"]
823823
}
824824
},

0 commit comments

Comments
 (0)