Skip to content

Commit

Permalink
feat: add and automate version schema
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik authored and aeneasr committed Aug 24, 2020
1 parent 8f03af8 commit 7ab4012
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ workflows:
ignore: /.*/
tags:
only: /.*/
-
goreleaser/render-version-schema:
requires:
- goreleaser/release
filters:
tags:
only: /.*/
-
goreleaser/newsletter-draft:
chimp-list: f605a41b53
Expand Down
6 changes: 6 additions & 0 deletions .schema/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1763,6 +1763,12 @@
"mem",
""
]
},
"version": {
"type": "string",
"title": "The Oathkeeper version this config is written for.",
"description": "SemVer according to https://semver.org/ prefixed with `v` as in our releases.",
"pattern": "^v(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
}
},
"required": [],
Expand Down
7 changes: 7 additions & 0 deletions .schema/version.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$id": "https://github.com/ory/oathkeeper/.schema/versions.config.schema.json",
"$schema": "https://raw.githubusercontent.com/ory/cli/v0.0.21/.schema/version_meta.schema.json#",
"title": "All Versions of the ORY Oathkeeper Configuration",
"type": "object",
"oneOf": []
}

0 comments on commit 7ab4012

Please sign in to comment.