Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jsonrainbow/json-schema
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6.6.1
Choose a base ref
...
head repository: jsonrainbow/json-schema
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6.6.2
Choose a head ref
  • 3 commits
  • 4 files changed
  • 3 contributors

Commits on Nov 28, 2025

  1. Allow underscore and tilde in URI hostnames as per RFC 3986 (#853)

    The implementation of [RFC
    3986](https://datatracker.ietf.org/doc/html/rfc3986) in the URI
    validator is more strict than the specification allows. While the RFC
    says
    
    > URI producers should use names that conform to the DNS syntax, even
    when use of DNS is not immediately apparent
    
    the host component grammar actually allows more characters than are
    allowed in DNS names.
    
    This is a problem for the Drupal project which uses this package in
    conjunction with custom stream wrappers with module names in the host
    component. Module names conform to PHP function name standards, not DNS
    standards - that is, they allow underscores but not dashes.
    
    The relevant RFC grammar is
    ```
          host        = IP-literal / IPv4address / reg-name
    
          reg-name    = *( unreserved / pct-encoded / sub-delims )
    
          unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"
    ```
    
    This PR widens the `host` validation to allow all characters in the
    `unreserved` set. While `pct-encoded` and `sub-delims` are also
    technically allowed, this is the smallest change that will help us out.
    
    ---------
    
    Co-authored-by: Danny van der Sluijs <danny.vandersluijs@icloud.com>
    longwave and DannyvdSluijs authored Nov 28, 2025
    Configuration menu
    Copy the full SHA
    8ca5769 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3e71d79 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3c25fe7 View commit details
    Browse the repository at this point in the history
Loading