summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-01-15 14:51:53 -0700
committermo khan <mo.khan@gmail.com>2020-01-15 15:03:10 -0700
commit3d4fbad1e39f7cbb37643864b8229aa4116ce07c (patch)
tree5a4b5dd86eef06987219e1768e2053eb3573abc0 /spec
parentac9634d8f8c6bbaa8348929f42d53d2b375f6dfb (diff)
Combine schema into a single file
Diffstat (limited to 'spec')
-rw-r--r--spec/fixtures/schema/v2.0.json48
-rw-r--r--spec/fixtures/schema/v2.0_dependency.json27
2 files changed, 46 insertions, 29 deletions
diff --git a/spec/fixtures/schema/v2.0.json b/spec/fixtures/schema/v2.0.json
index 3377a9d..712143b 100644
--- a/spec/fixtures/schema/v2.0.json
+++ b/spec/fixtures/schema/v2.0.json
@@ -8,8 +8,52 @@
],
"properties": {
"version": { "type": "string" },
- "licenses": { "type": "array" },
- "dependencies": { "$ref": "v2.0_dependency.json" }
+ "licenses": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [
+ "id",
+ "name",
+ "url"
+ ],
+ "properties": {
+ "id": { "type": "string" },
+ "name": { "type": "string" },
+ "url": { "type": "uri" }
+ }
+ }
+ },
+ "dependencies": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [
+ "name",
+ "url",
+ "description",
+ "paths",
+ "licenses"
+ ],
+ "properties": {
+ "name": { "type": "string" },
+ "url": { "type": "uri" },
+ "description": { "type": "string" },
+ "paths": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "licenses": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
},
"additionalProperties": false
}
diff --git a/spec/fixtures/schema/v2.0_dependency.json b/spec/fixtures/schema/v2.0_dependency.json
deleted file mode 100644
index fcd96d7..0000000
--- a/spec/fixtures/schema/v2.0_dependency.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "type": "array",
- "required": [
- "name",
- "url",
- "description",
- "paths",
- "licenses"
- ],
- "properties": {
- "name": { "type": "string" },
- "url": { "type": "uri" },
- "description": { "type": "string" },
- "paths": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "licenses": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
-}