diff --git a/examples_test.go b/examples_test.go index 08f6e53..82cae05 100644 --- a/examples_test.go +++ b/examples_test.go @@ -28,7 +28,7 @@ func ExampleReflect() { fmt.Println(string(data)) // Output: // { - // "$schema": "http://json-schema.org/draft/2020-12/schema", + // "$schema": "https://json-schema.org/draft/2020-12/schema", // "$id": "https://github.com/invopop/jsonschema_test/sample-user", // "$ref": "#/$defs/SampleUser", // "$defs": { diff --git a/fixtures/allow_additional_props.json b/fixtures/allow_additional_props.json index a196af9..583f050 100644 --- a/fixtures/allow_additional_props.json +++ b/fixtures/allow_additional_props.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/test-user", "$ref": "#/$defs/TestUser", "$defs": { diff --git a/fixtures/array_type.json b/fixtures/array_type.json index a354029..a574591 100644 --- a/fixtures/array_type.json +++ b/fixtures/array_type.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/array-type", "$ref": "#/$defs/ArrayType", "$defs": { diff --git a/fixtures/base_schema_id.json b/fixtures/base_schema_id.json index 459be3d..7c52f31 100644 --- a/fixtures/base_schema_id.json +++ b/fixtures/base_schema_id.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://example.com/schemas/lookup-user", "$ref": "#/$defs/LookupUser", "$defs": { diff --git a/fixtures/commas_in_pattern.json b/fixtures/commas_in_pattern.json index d516d79..a2f950c 100644 --- a/fixtures/commas_in_pattern.json +++ b/fixtures/commas_in_pattern.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/pattern-test", "$ref": "#/$defs/PatternTest", "$defs": { diff --git a/fixtures/compact_date.json b/fixtures/compact_date.json index d01e792..927472e 100644 --- a/fixtures/compact_date.json +++ b/fixtures/compact_date.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/compact-date", "$ref": "#/$defs/CompactDate", "$defs": { diff --git a/fixtures/custom_additional.json b/fixtures/custom_additional.json index 657aba3..4dc7992 100644 --- a/fixtures/custom_additional.json +++ b/fixtures/custom_additional.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/grandfather-type", "$ref": "#/$defs/GrandfatherType", "$defs": { diff --git a/fixtures/custom_map_type.json b/fixtures/custom_map_type.json index 9faf791..379efe2 100644 --- a/fixtures/custom_map_type.json +++ b/fixtures/custom_map_type.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/custom-map-outer", "$ref": "#/$defs/CustomMapOuter", "$defs": { diff --git a/fixtures/custom_slice_type.json b/fixtures/custom_slice_type.json index 0af652a..6e5cb71 100644 --- a/fixtures/custom_slice_type.json +++ b/fixtures/custom_slice_type.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/custom-slice-outer", "$ref": "#/$defs/CustomSliceOuter", "$defs": { diff --git a/fixtures/custom_type.json b/fixtures/custom_type.json index 1dc5c7e..0cc5bab 100644 --- a/fixtures/custom_type.json +++ b/fixtures/custom_type.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/custom-type-field", "$ref": "#/$defs/CustomTypeField", "$defs": { diff --git a/fixtures/custom_type_with_interface.json b/fixtures/custom_type_with_interface.json index a967fb1..0e4c53d 100644 --- a/fixtures/custom_type_with_interface.json +++ b/fixtures/custom_type_with_interface.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/custom-type-field-with-interface", "$ref": "#/$defs/CustomTypeFieldWithInterface", "$defs": { diff --git a/fixtures/defaults_expanded_toplevel.json b/fixtures/defaults_expanded_toplevel.json index 894ece1..1020566 100644 --- a/fixtures/defaults_expanded_toplevel.json +++ b/fixtures/defaults_expanded_toplevel.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/test-user", "$defs": { "Bytes": { diff --git a/fixtures/go_comments.json b/fixtures/go_comments.json index 4fc2312..6b3fb29 100644 --- a/fixtures/go_comments.json +++ b/fixtures/go_comments.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/examples/user", "$ref": "#/$defs/User", "$defs": { diff --git a/fixtures/ignore_type.json b/fixtures/ignore_type.json index 4e164ca..852f4e4 100644 --- a/fixtures/ignore_type.json +++ b/fixtures/ignore_type.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/test-user", "$ref": "#/$defs/TestUser", "$defs": { diff --git a/fixtures/inlining_embedded.json b/fixtures/inlining_embedded.json index cf12841..630e5f9 100644 --- a/fixtures/inlining_embedded.json +++ b/fixtures/inlining_embedded.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/outer-named", "$defs": { "Inner": { diff --git a/fixtures/inlining_embedded_anchored.json b/fixtures/inlining_embedded_anchored.json index 2b39433..7d0b42c 100644 --- a/fixtures/inlining_embedded_anchored.json +++ b/fixtures/inlining_embedded_anchored.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/outer-named", "$anchor": "OuterNamed", "$defs": { diff --git a/fixtures/inlining_inheritance.json b/fixtures/inlining_inheritance.json index f97fa2d..bd01a39 100644 --- a/fixtures/inlining_inheritance.json +++ b/fixtures/inlining_inheritance.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/outer", "properties": { "TextNamed": { diff --git a/fixtures/keynamed.json b/fixtures/keynamed.json index d59412b..60bd2a7 100644 --- a/fixtures/keynamed.json +++ b/fixtures/keynamed.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/key-named", "$ref": "#/$defs/KeyNamed", "$defs": { diff --git a/fixtures/lookup.json b/fixtures/lookup.json index 287a468..1d52012 100644 --- a/fixtures/lookup.json +++ b/fixtures/lookup.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://example.com/schemas/lookup-user", "$ref": "#/$defs/LookupUser", "$defs": { diff --git a/fixtures/lookup_expanded.json b/fixtures/lookup_expanded.json index dcf49b5..a9013da 100644 --- a/fixtures/lookup_expanded.json +++ b/fixtures/lookup_expanded.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://example.com/schemas/lookup-user", "$anchor": "LookupUser", "properties": { diff --git a/fixtures/map_type.json b/fixtures/map_type.json index dba13a2..9050c57 100644 --- a/fixtures/map_type.json +++ b/fixtures/map_type.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/map-type", "$ref": "#/$defs/MapType", "$defs": { diff --git a/fixtures/no_reference.json b/fixtures/no_reference.json index 498fb44..6ea173c 100644 --- a/fixtures/no_reference.json +++ b/fixtures/no_reference.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/test-user", "properties": { "some_base_property": { diff --git a/fixtures/no_reference_anchor.json b/fixtures/no_reference_anchor.json index 7428959..71f3ca2 100644 --- a/fixtures/no_reference_anchor.json +++ b/fixtures/no_reference_anchor.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/test-user", "$anchor": "TestUser", "properties": { diff --git a/fixtures/nullable.json b/fixtures/nullable.json index 53e0df8..7bad7a9 100644 --- a/fixtures/nullable.json +++ b/fixtures/nullable.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/test-nullable", "$ref": "#/$defs/TestNullable", "$defs": { diff --git a/fixtures/oneof.json b/fixtures/oneof.json index 666b010..c1daf0f 100644 --- a/fixtures/oneof.json +++ b/fixtures/oneof.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/root-one-of", "$ref": "#/$defs/RootOneOf", "$defs": { diff --git a/fixtures/recursive.json b/fixtures/recursive.json index 37f67d7..ef1daa2 100644 --- a/fixtures/recursive.json +++ b/fixtures/recursive.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/recursive-example", "$ref": "#/$defs/RecursiveExample", "$defs": { diff --git a/fixtures/required_from_jsontags.json b/fixtures/required_from_jsontags.json index 6c5b3d0..f1c1485 100644 --- a/fixtures/required_from_jsontags.json +++ b/fixtures/required_from_jsontags.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/test-user", "$ref": "#/$defs/TestUser", "$defs": { diff --git a/fixtures/schema_with_minimum.json b/fixtures/schema_with_minimum.json index aa09536..50176c4 100644 --- a/fixtures/schema_with_minimum.json +++ b/fixtures/schema_with_minimum.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/min-value", "$ref": "#/$defs/MinValue", "$defs": { diff --git a/fixtures/test_description_override.json b/fixtures/test_description_override.json index c3cb419..21be044 100644 --- a/fixtures/test_description_override.json +++ b/fixtures/test_description_override.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/test-description-override", "$ref": "#/$defs/TestDescriptionOverride", "$defs": { diff --git a/fixtures/test_user.json b/fixtures/test_user.json index 10e62a2..4a5cd8f 100644 --- a/fixtures/test_user.json +++ b/fixtures/test_user.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/test-user", "$ref": "#/$defs/TestUser", "$defs": { diff --git a/fixtures/test_user_assign_anchor.json b/fixtures/test_user_assign_anchor.json index 5c1b86f..31cc4ad 100644 --- a/fixtures/test_user_assign_anchor.json +++ b/fixtures/test_user_assign_anchor.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/test-user", "$ref": "#/$defs/TestUser", "$defs": { diff --git a/fixtures/user_with_anchor.json b/fixtures/user_with_anchor.json index 7ec46bd..0d8994b 100644 --- a/fixtures/user_with_anchor.json +++ b/fixtures/user_with_anchor.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/invopop/jsonschema/user-with-anchor", "$ref": "#/$defs/UserWithAnchor", "$defs": { diff --git a/reflect.go b/reflect.go index badc5df..34240b6 100644 --- a/reflect.go +++ b/reflect.go @@ -20,7 +20,7 @@ import ( ) // Version is the JSON Schema version. -var Version = "http://json-schema.org/draft/2020-12/schema" +var Version = "https://json-schema.org/draft/2020-12/schema" // Schema represents a JSON Schema object type. // RFC draft-bhutton-json-schema-00 section 4.3