Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
181 changes: 0 additions & 181 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,6 @@ handlebars = "5.0.0"
x509-parser = { version = "0.18", features = ["verify"] }
sitemap-rs = "0.2.1"

tree-sitter-highlight = "0.27"
tree-sitter-javascript = "0.25"
tree-sitter-typescript = "0.23"
tree-sitter-json = "0.24"
tree-sitter-regex = "0.25"
tree-sitter-css = "0.25"
tree-sitter-md = "0.5"
tree-sitter-rust = "0.24"
tree-sitter-html = "0.23"
tree-sitter-bash = "0.25"
tree-sitter-xml = "0.7"
tree-sitter-toml-ng = "0.7"
tree-sitter-yaml = "0.7"
tree-sitter-c = "0.24"
lazy_static = "1.5.0"
shared = { path = "../shared", package = "registry_api_shared" }
registry_api_tasks = { path = "../tasks" }
Expand Down
28 changes: 26 additions & 2 deletions api/src/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3572,17 +3572,41 @@ components:
size:
type: integer
description: Size of the file in bytes.
view:
content:
type: string
nullable: true
description: HTML-rendered source code view. Null for binary files.
description: The file's text, cut short at a line boundary when the file is too large to display in full. Null for binary files.
links:
type: array
description: Import and export specifiers in the content that link elsewhere, as UTF-16 code unit offsets into it.
items:
$ref: "#/components/schemas/SourceLink"
rendered:
type: string
nullable: true
description: Rendered HTML, present for markdown files.
truncated:
type: boolean
description: Whether the file was too large to display in full, so content and rendered only cover its beginning.
required:
- kind
- size
- links
- truncated

SourceLink:
type: object
properties:
start:
type: integer
end:
type: integer
href:
type: string
required:
- start
- end
- href

SourceDirEntry:
type: object
Expand Down
Loading
Loading