Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Values with trailing slashes not in path part #173

@hiroshige-g

Description

@hiroshige-g

Originally from @nyaxt:

For keys ending with slashes, we require values to end with slashes, but any slashes (not necessarily in the path part) are OK. So for example

{
  "imports": {
    "https://foo.com/": "https://nyaxtstep.com/fox?grapes=/",
    "https://bar.com/": "https://nyaxtstep.com/fox#/"
  }
}
  • https://foo.com/bar/baz is mapped to https://nyaxtstep.com/fox?grapes=/bar/baz
  • https://foo.com/bar?baz is mapped to https://nyaxtstep.com/fox?grapes=/bar?baz
  • https://bar.com/baz is mapped to https://nyaxtstep.com/fox#/baz

(The behavior before d5add26 is different though)

I don't have strong opinions here; WDYT? Does this looks good?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions