Skip to content

Use Addressable for handling URIs? #173

Closed
@RST-J

Description

Several filed issues (#100, #109) and the latest discussion in #170 showed that there are problems with URIs. And there is at least one more, the following test currently fails:

    schema = {
      "$schema"=> "http://json-schema.org/draft-04/schema#",
      "id"=> "http://俺:鍵@例え.テスト/p?条件#ここ#",
      "type" => "object",
      "required" => ["a"],
      "properties" => {
        "a" => {
          "id" => "a",
          "type" => "integer"
        }
      }
    }
    data = { "a" => 5 }
    assert_valid schema, data

Using Addressable to have the mess about handling URIs covered - instead of doing it ourselves (which would likely fail) - got some consent.

I closed #170 and opened this issue to discuss the URI stuff in general and started to work on the Addressable integration.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions