diff --git a/internal/rule/schema/schema_test.go b/internal/rule/schema/schema_test.go index a7931a0ff..6c37ebe93 100644 --- a/internal/rule/schema/schema_test.go +++ b/internal/rule/schema/schema_test.go @@ -212,7 +212,7 @@ func Test_schemaID(t *testing.T) { require.NotNil(t, err) id, err := schemaID("valid-schema.json", testdata.Asset) - require.Equal(t, "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/schema-with-references.json", id) + require.Equal(t, "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/input/valid-schema.json", id) require.Nil(t, err) } diff --git a/internal/rule/schema/testdata/bindata.go b/internal/rule/schema/testdata/bindata.go index 7160300c7..d2aa48c44 100644 --- a/internal/rule/schema/testdata/bindata.go +++ b/internal/rule/schema/testdata/bindata.go @@ -82,7 +82,7 @@ func invalidSchemaJson() (*asset, error) { var _referencedSchema1Json = []byte(`{ "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/referenced-schema-1.json", + "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/input/referenced-schema-1.json", "title": "Schema for use in unit tests", "definitions": { "patternObject": { @@ -112,7 +112,7 @@ func referencedSchema1Json() (*asset, error) { var _referencedSchema2Json = []byte(`{ "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/referenced-schema-2.json", + "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/input/referenced-schema-2.json", "title": "Schema for use in unit tests", "definitions": { "dependenciesObject": { @@ -187,7 +187,7 @@ func schemaWithoutIdJson() (*asset, error) { var _validSchemaWithReferencesJson = []byte(`{ "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/schema-with-references.json", + "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/input/valid-schema-with-references.json", "title": "Schema for use in unit tests", "type": "object", "properties": { @@ -250,7 +250,7 @@ func validSchemaWithReferencesJson() (*asset, error) { var _validSchemaJson = []byte(`{ "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/schema-with-references.json", + "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/input/valid-schema.json", "title": "Schema for use in unit tests", "type": "object", "properties": { diff --git a/internal/rule/schema/testdata/input/referenced-schema-1.json b/internal/rule/schema/testdata/input/referenced-schema-1.json index 76629724b..df284d9aa 100644 --- a/internal/rule/schema/testdata/input/referenced-schema-1.json +++ b/internal/rule/schema/testdata/input/referenced-schema-1.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/referenced-schema-1.json", + "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/input/referenced-schema-1.json", "title": "Schema for use in unit tests", "definitions": { "patternObject": { diff --git a/internal/rule/schema/testdata/input/referenced-schema-2.json b/internal/rule/schema/testdata/input/referenced-schema-2.json index 3de85159a..9b8e2cf2e 100644 --- a/internal/rule/schema/testdata/input/referenced-schema-2.json +++ b/internal/rule/schema/testdata/input/referenced-schema-2.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/referenced-schema-2.json", + "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/input/referenced-schema-2.json", "title": "Schema for use in unit tests", "definitions": { "dependenciesObject": { diff --git a/internal/rule/schema/testdata/input/valid-schema-with-references.json b/internal/rule/schema/testdata/input/valid-schema-with-references.json index 909e8c6cb..d07da8e65 100644 --- a/internal/rule/schema/testdata/input/valid-schema-with-references.json +++ b/internal/rule/schema/testdata/input/valid-schema-with-references.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/schema-with-references.json", + "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/input/valid-schema-with-references.json", "title": "Schema for use in unit tests", "type": "object", "properties": { diff --git a/internal/rule/schema/testdata/input/valid-schema.json b/internal/rule/schema/testdata/input/valid-schema.json index 44f687b4f..82dbb0ede 100644 --- a/internal/rule/schema/testdata/input/valid-schema.json +++ b/internal/rule/schema/testdata/input/valid-schema.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/schema-with-references.json", + "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/internal/rule/schema/testdata/input/valid-schema.json", "title": "Schema for use in unit tests", "type": "object", "properties": {