Repository navigation
Conversation
site/index.html presents the library: what JSONPath is, with three queries on the README's bookstore; six features; the two Dialects side by side; a tabbed code tour; who it is for; quality numbers (715/715 compliance cases, 322 Sextant tests, 0 dependencies, 4 CI builds); and the install snippet. One static file, light and dark, no external requests. .github/workflows/pages.yml deploys site/ on pushes to main that touch it, as in swift-arazzo. The code tour and install snippet are copied from the README and marked data-readme; ReadmeTests.sitePageQuotesTheReadme fails when one of their lines is not a README line, so the page cannot drift from the snippets the README tests run. AGENTS.md says to update the page with the README. The README links the site, and its install snippet now names the latest release, 0.0.4, instead of 0.0.1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A landing page for the library, to be published at https://mackoj.github.io/swift-jsonpath/. It follows swift-arazzo's site: one static
site/index.htmland apages.ymlworkflow.The page
$..price, a filter, a Jayway path function).$ref, JSON Patch, validator error locations); three pointers explained (tokens,~0/~1escaping, the#fragment form); JSONPath and JSON Pointer compared; and what the library does with pointers: query results to pointers, set by pointer with-to append, strict parsing,Codableas a string.anyDialect; mutations and JSON Pointer; the order-preservingJSONValueand Codable bridge; editor support (token ranges, typed errors); zero dependencies and Swift 6.The page loads nothing external (no fonts, scripts or analytics) and follows the system's light or dark mode. Tabs work from the keyboard, and without JavaScript every example is shown. At 390 px wide nothing overflows; I checked that in headless Chrome.
Keeping it true
data-readme.ReadmeTests.sitePageQuotesTheReadmefails when one of their lines is not a README line; I checked that it fails on an edited line. The README tests already compile and run those snippets.from: "0.0.4"; it said0.0.1.Merge after #8
GitHub Pages is already enabled and set to deploy from GitHub Actions, so the site goes live when this merges.
The Quality section now has a benchmark table comparing 0.0.4 with
main: parsing, the 8 queries in each dialect,$..author, and replace and remove on the 1.4 MB document. The numbers are #8's p50s and the commands are #8's, so merge #8 first.Checks
swift test(363 tests), swift-format 6.3 lint