Skip to content

Commit 2280875

Browse files
committed
Fix some of the lexer metadata to be JSON Schema specific.
1 parent 4d6f0a5 commit 2280875

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

jsonschema_lexer/lexer.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@
1212

1313
class JSONSchemaLexer(JsonLexer):
1414
"""
15-
For JSONSchema.
15+
A Pygments lexer for dialects of the JSON Schema specification.
1616
"""
1717

18-
name = "JSON Schema Lexer"
18+
name = "JSON Schema"
19+
url = "https://json-schema.org"
20+
aliases: ClassVar[list[str]] = ["jsonschema", "json-schema"]
21+
mimetypes: ClassVar[list[str]] = [
22+
"application/schema+json",
23+
"application/schema-instance+json",
24+
]
1925

2026
data_types: ClassVar[list[str]] = [
2127
"object",

0 commit comments

Comments
 (0)