Skip to content

Commit 30ad8ac

Browse files
graywolf336d-gubert
authored andcommittedJun 18, 2019
Modify the regex of the app.json schema for the versions to reflect what we require (#125)
1 parent 80b8c1f commit 30ad8ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/definition/app-schema.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"version": {
2525
"description": "The version of this App which will be used for display publicly and letting users know there is an update. This uses the semver format.",
2626
"type": "string",
27-
"pattern": "\\bv?(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?(?:\\+[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?\\b",
27+
"pattern": "^(?:\\d*)\\.(?:\\d*)\\.(?:\\d*)$",
2828
"minLength": 5
2929
},
3030
"description": {
@@ -34,7 +34,7 @@
3434
"requiredApiVersion": {
3535
"description": "The required version of the App's API which this App depends on. This uses the semver format.",
3636
"type": "string",
37-
"pattern": "\\bv?(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?(?:\\+[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?\\b",
37+
"pattern": "^(?:\\^|~)?(?:\\d*)\\.(?:\\d*)\\.(?:\\d*)$",
3838
"minLength": 5
3939
},
4040
"author": {

0 commit comments

Comments
 (0)
Please sign in to comment.