{"id":21121510,"url":"https://github.com/python-jsonschema/jsonschema-lexer","last_synced_at":"2025-07-08T21:32:48.735Z","repository":{"id":224752287,"uuid":"764129697","full_name":"python-jsonschema/jsonschema-lexer","owner":"python-jsonschema","description":"A Pygments lexer for JSON Schema","archived":false,"fork":false,"pushed_at":"2025-06-30T19:40:24.000Z","size":131,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-04T00:32:02.247Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/python-jsonschema.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-27T14:31:59.000Z","updated_at":"2025-06-30T19:40:28.000Z","dependencies_parsed_at":"2024-10-22T19:19:54.590Z","dependency_job_id":"dfd7cce1-85f8-40d9-937f-debddbf177d4","html_url":"https://github.com/python-jsonschema/jsonschema-lexer","commit_stats":null,"previous_names":["python-jsonschema/jsonschema-lexer"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/python-jsonschema/jsonschema-lexer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-jsonschema%2Fjsonschema-lexer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-jsonschema%2Fjsonschema-lexer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-jsonschema%2Fjsonschema-lexer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-jsonschema%2Fjsonschema-lexer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/python-jsonschema","download_url":"https://codeload.github.com/python-jsonschema/jsonschema-lexer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-jsonschema%2Fjsonschema-lexer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264352897,"owners_count":23594989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T03:51:01.725Z","updated_at":"2025-07-08T21:32:46.326Z","avatar_url":"https://github.com/python-jsonschema.png","language":"Python","readme":"=======================\n``jsonschema-lexer``\n=======================\n\n|PyPI| |Pythons| |CI|\n\n.. |PyPI| image:: https://img.shields.io/pypi/v/jsonschema-lexer.svg\n  :alt: PyPI version\n  :target: https://pypi.org/project/jsonschema-lexer/\n\n.. |Pythons| image:: https://img.shields.io/pypi/pyversions/jsonschema-lexer.svg\n  :alt: Supported Python versions\n  :target: https://pypi.org/project/jsonschema-lexer/\n\n.. |CI| image:: https://github.com/python-jsonschema/jsonschema-lexer/workflows/CI/badge.svg\n  :alt: Build status\n  :target: https://github.com/python-jsonschema/jsonschema-lexer/actions?query=workflow%3ACI\n\nIntroduction\n------------\n\n`jsonschema-lexer` provides a lexer for syntax highlighting JSON Schema documents via `Pygments \u003chttps://pygments.org/\u003e`_.\n\nUsage\n-----\n\nOnce installed, you can use it in your Python code to highlight JSON Schema documents.\n\nHere's a simple example:\n\n.. code-block:: python\n\n  from jsonschema_lexer import JSONSchemaLexer\n\n  from rich.console import Console\n  from rich.syntax import Syntax\n\n  console = Console()\n\n  code = \"\"\"\n  {\n    \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n    \"$id\": \"https://example.com/product.schema.json\",\n    \"title\": \"Product\",\n    \"description\": \"A product from Acme's catalog\",\n    \"type\": \"object\",\n    \"properties\": {\n      \"productId\": {\n        \"description\": \"The unique identifier for a product\",\n        \"type\": \"integer\"\n      },\n      \"productName\": {\n        \"description\": \"Name of the product\",\n        \"type\": \"string\"\n      }\n    }\n  }\n  \"\"\"\n\n  syntax = Syntax(code, lexer=JSONSchemaLexer(), background_color=\"default\", word_wrap=True)\n  console.print(syntax)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-jsonschema%2Fjsonschema-lexer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpython-jsonschema%2Fjsonschema-lexer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-jsonschema%2Fjsonschema-lexer/lists"}