{"action":"created","issue":{"url":"https://api.github.com/repos/gregsdennis/Manatee.Json/issues/173","repository_url":"https://api.github.com/repos/gregsdennis/Manatee.Json","labels_url":"https://api.github.com/repos/gregsdennis/Manatee.Json/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/gregsdennis/Manatee.Json/issues/173/comments","events_url":"https://api.github.com/repos/gregsdennis/Manatee.Json/issues/173/events","html_url":"https://github.com/gregsdennis/Manatee.Json/issues/173","id":340372684,"node_id":"MDU6SXNzdWUzNDAzNzI2ODQ=","number":173,"title":"Relative reference to parent folder in url","user":{"login":"bluecitylights","id":30653230,"node_id":"MDQ6VXNlcjMwNjUzMjMw","avatar_url":"https://avatars0.githubusercontent.com/u/30653230?v=4","gravatar_id":"","url":"https://api.github.com/users/bluecitylights","html_url":"https://github.com/bluecitylights","followers_url":"https://api.github.com/users/bluecitylights/followers","following_url":"https://api.github.com/users/bluecitylights/following{/other_user}","gists_url":"https://api.github.com/users/bluecitylights/gists{/gist_id}","starred_url":"https://api.github.com/users/bluecitylights/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluecitylights/subscriptions","organizations_url":"https://api.github.com/users/bluecitylights/orgs","repos_url":"https://api.github.com/users/bluecitylights/repos","events_url":"https://api.github.com/users/bluecitylights/events{/privacy}","received_events_url":"https://api.github.com/users/bluecitylights/received_events","type":"User","site_admin":false},"labels":[{"id":396344778,"node_id":"MDU6TGFiZWwzOTYzNDQ3Nzg=","url":"https://api.github.com/repos/gregsdennis/Manatee.Json/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"gregsdennis","id":2676804,"node_id":"MDQ6VXNlcjI2NzY4MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2676804?v=4","gravatar_id":"","url":"https://api.github.com/users/gregsdennis","html_url":"https://github.com/gregsdennis","followers_url":"https://api.github.com/users/gregsdennis/followers","following_url":"https://api.github.com/users/gregsdennis/following{/other_user}","gists_url":"https://api.github.com/users/gregsdennis/gists{/gist_id}","starred_url":"https://api.github.com/users/gregsdennis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregsdennis/subscriptions","organizations_url":"https://api.github.com/users/gregsdennis/orgs","repos_url":"https://api.github.com/users/gregsdennis/repos","events_url":"https://api.github.com/users/gregsdennis/events{/privacy}","received_events_url":"https://api.github.com/users/gregsdennis/received_events","type":"User","site_admin":false},"assignees":[{"login":"gregsdennis","id":2676804,"node_id":"MDQ6VXNlcjI2NzY4MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2676804?v=4","gravatar_id":"","url":"https://api.github.com/users/gregsdennis","html_url":"https://github.com/gregsdennis","followers_url":"https://api.github.com/users/gregsdennis/followers","following_url":"https://api.github.com/users/gregsdennis/following{/other_user}","gists_url":"https://api.github.com/users/gregsdennis/gists{/gist_id}","starred_url":"https://api.github.com/users/gregsdennis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregsdennis/subscriptions","organizations_url":"https://api.github.com/users/gregsdennis/orgs","repos_url":"https://api.github.com/users/gregsdennis/repos","events_url":"https://api.github.com/users/gregsdennis/events{/privacy}","received_events_url":"https://api.github.com/users/gregsdennis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-07-11T19:21:17Z","updated_at":"2018-07-11T21:42:04Z","closed_at":null,"author_association":"NONE","body":"I have an issue using a relative reference to the parent folder.\r\nmy schema is located in\r\n`<s3-url>/folder/myschema.json`\r\nmyschema.json contains a \"$ref\" : \"../someschema.json\".\r\nthis one is located in \r\n`<s3-url>/someschema.json`\r\n\r\nwhen i call schema.validate() I get a 404 error. Using fiddler  can see that manatee is trying to download:\r\n`<s3-url>/folder//someschema.json`\r\nNotice the double slash. \r\n\r\nNote that VSCode is able to use my existing schema. I also tried to validate using another library NJsonSchema. which also just works.\r\n\r\nI hope you can help me with this, because the manatee looks very promising.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gregsdennis/Manatee.Json/issues/comments/404319833","html_url":"https://github.com/gregsdennis/Manatee.Json/issues/173#issuecomment-404319833","issue_url":"https://api.github.com/repos/gregsdennis/Manatee.Json/issues/173","id":404319833,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDMxOTgzMw==","user":{"login":"gregsdennis","id":2676804,"node_id":"MDQ6VXNlcjI2NzY4MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2676804?v=4","gravatar_id":"","url":"https://api.github.com/users/gregsdennis","html_url":"https://github.com/gregsdennis","followers_url":"https://api.github.com/users/gregsdennis/followers","following_url":"https://api.github.com/users/gregsdennis/following{/other_user}","gists_url":"https://api.github.com/users/gregsdennis/gists{/gist_id}","starred_url":"https://api.github.com/users/gregsdennis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregsdennis/subscriptions","organizations_url":"https://api.github.com/users/gregsdennis/orgs","repos_url":"https://api.github.com/users/gregsdennis/repos","events_url":"https://api.github.com/users/gregsdennis/events{/privacy}","received_events_url":"https://api.github.com/users/gregsdennis/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T21:42:04Z","updated_at":"2018-07-11T21:42:04Z","author_association":"OWNER","body":"I've added a test that I think covers your case.  Please take a look.  The test passes, correctly processing both valid and invalid instances.\r\n\r\n[Test](https://github.com/gregsdennis/Manatee.Json/blob/bug/173-parent-folder-schema-ref/Manatee.Json.Tests/Schema/ClientTests.cs#L447)\r\n[Parent Schema](https://github.com/gregsdennis/Manatee.Json/blob/bug/173-parent-folder-schema-ref/Manatee.Json.Tests/Files/Issue173/BaseSchema.json)\r\n[Child Schema](https://github.com/gregsdennis/Manatee.Json/blob/bug/173-parent-folder-schema-ref/Manatee.Json.Tests/Files/Issue173Child.json)"}}
{"actor":{"display_login":"gregsdennis"}}