Skip to content

Commit

Permalink
Merge pull request #36 from invopop/https-schema
Browse files Browse the repository at this point in the history
Using https for schema version
  • Loading branch information
samlown committed Jul 22, 2022
2 parents d780b03 + 83a598a commit 6fa1420
Show file tree
Hide file tree
Showing 33 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion examples_test.go
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
2 changes: 1 addition & 1 deletion reflect.go
Expand Up @@ -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
Expand Down

0 comments on commit 6fa1420

Please sign in to comment.