summaryrefslogtreecommitdiff
path: root/spec/fixtures
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-01-15 15:11:58 -0700
committermo khan <mo.khan@gmail.com>2020-01-15 15:11:58 -0700
commit3e9bbcd897812e64d3a356dcd5806baeec198d65 (patch)
tree51db8d3f5d971f348ad7af76c954a7ae64ed3931 /spec/fixtures
parent1046fecb2ea48d6fac210502dbe941725a1f5a71 (diff)
Validate version #
Diffstat (limited to 'spec/fixtures')
-rw-r--r--spec/fixtures/schema/v2.0.json30
1 files changed, 22 insertions, 8 deletions
diff --git a/spec/fixtures/schema/v2.0.json b/spec/fixtures/schema/v2.0.json
index 712143b..6ade7ad 100644
--- a/spec/fixtures/schema/v2.0.json
+++ b/spec/fixtures/schema/v2.0.json
@@ -7,7 +7,10 @@
"dependencies"
],
"properties": {
- "version": { "type": "string" },
+ "version": {
+ "type": "string",
+ "pattern": "^[0-9]+\\.[0-9]+$"
+ },
"licenses": {
"type": "array",
"items": {
@@ -18,9 +21,15 @@
"url"
],
"properties": {
- "id": { "type": "string" },
- "name": { "type": "string" },
- "url": { "type": "uri" }
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "url": {
+ "type": "uri"
+ }
}
}
},
@@ -36,9 +45,15 @@
"licenses"
],
"properties": {
- "name": { "type": "string" },
- "url": { "type": "uri" },
- "description": { "type": "string" },
+ "name": {
+ "type": "string"
+ },
+ "url": {
+ "type": "uri"
+ },
+ "description": {
+ "type": "string"
+ },
"paths": {
"type": "array",
"items": {
@@ -57,4 +72,3 @@
},
"additionalProperties": false
}
-