Skip to content

Commit d69cf35

Browse files
committed
https:
1 parent 5d50911 commit d69cf35

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Or install it yourself as:
2424

2525
Inspired by [Validating JSON Schemas with an RSpec Matcher][original-blog-post].
2626

27-
[original-blog-post]: (http://robots.thoughtbot.com/validating-json-schemas-with-an-rspec-matcher)
27+
[original-blog-post]: (https://robots.thoughtbot.com/validating-json-schemas-with-an-rspec-matcher)
2828

2929
First, configure it in your test suite's helper file:
3030

@@ -55,19 +55,19 @@ Minitest::Test.send(:include, JsonMatchers::Minitest::Assertions)
5555

5656
### Declare
5757

58-
Declare your [JSON Schema](http://json-schema.org/example1.html) in the schema
58+
Declare your [JSON Schema](https://json-schema.org/example1.html) in the schema
5959
directory.
6060

6161
`spec/support/api/schemas/location.json` or
6262
`test/support/api/schemas/location.json`:
6363

64-
Define your [JSON Schema](http://json-schema.org/example1.html) in the schema
64+
Define your [JSON Schema](https://json-schema.org/example1.html) in the schema
6565
directory.
6666

6767
```json
6868
{
69-
"id": "http://json-schema.org/geo",
70-
"$schema": "http://json-schema.org/draft-06/schema#",
69+
"id": "https://json-schema.org/geo",
70+
"$schema": "https://json-schema.org/draft-06/schema#",
7171
"description": "A geographical coordinate",
7272
"type": "object",
7373
"properties": {
@@ -176,7 +176,7 @@ In this case `"user.json"` and `"users/index.json"` are resolved relative to
176176
To learn more about `$ref`, check out
177177
[Understanding JSON Schema Structuring][$ref].
178178

179-
[$ref]: http://spacetelescope.github.io/understanding-json-schema/structuring.html
179+
[$ref]: https://spacetelescope.github.io/understanding-json-schema/structuring.html
180180

181181
## Configuration
182182

lib/json_matchers/matcher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def build_and_populate_document_store
3434
Dir.glob("#{JsonMatchers.schema_root}/**/*.json").
3535
map { |path| Pathname.new(path) }.
3636
map { |schema_path| Parser.new(schema_path).parse }.
37-
map { |schema| document_store.add_schema(schema) }
37+
each { |schema| document_store.add_schema(schema) }
3838

3939
document_store
4040
end

spec/factories.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
initialize_with do
6767
FakeSchema.new(name, {
68-
"$schema": "http://json-schema.org/draft-04/schema#",
68+
"$schema": "https://json-schema.org/draft-04/schema#",
6969
"type": "array",
7070
"items": { "$ref": "file:/#{items.name}.json#" },
7171
})
@@ -82,7 +82,7 @@
8282

8383
json do
8484
{
85-
"$schema": "http://json-schema.org/draft-04/schema#",
85+
"$schema": "https://json-schema.org/draft-04/schema#",
8686
"id": "file:/#{name}.json#",
8787
"type": "object",
8888
"definitions": {

0 commit comments

Comments
 (0)