summaryrefslogtreecommitdiff
path: root/spec/fixtures/schema/v1.1.json
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-14 12:50:13 -0600
committermo khan <mo.khan@gmail.com>2020-04-14 12:50:13 -0600
commitbae02b6ae73dda47dc86590b73c21a85bb7273a5 (patch)
tree148f331085f123903cbf3635ea8b20b5c279d964 /spec/fixtures/schema/v1.1.json
parent2b69afb35bd1b123e00d3efabce0d4c4aefdd008 (diff)
Migrate specs from gitlab-org/security-products/license-management
Diffstat (limited to 'spec/fixtures/schema/v1.1.json')
-rw-r--r--spec/fixtures/schema/v1.1.json99
1 files changed, 99 insertions, 0 deletions
diff --git a/spec/fixtures/schema/v1.1.json b/spec/fixtures/schema/v1.1.json
new file mode 100644
index 0000000..99314e7
--- /dev/null
+++ b/spec/fixtures/schema/v1.1.json
@@ -0,0 +1,99 @@
+{
+ "$id": "https://gitlab.com/gitlab-org/security-products/license-management/blob/master/spec/fixtures/schema/v1.1.json",
+ "type": "object",
+ "required": [
+ "version",
+ "licenses",
+ "dependencies"
+ ],
+ "properties": {
+ "version": {
+ "type": "string",
+ "pattern": "^[0-9]+\\.[0-9]+$"
+ },
+ "licenses": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [
+ "name"
+ ],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "count": {
+ "type": "number"
+ }
+ }
+ }
+ },
+ "dependencies": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [
+ "licenses",
+ "license",
+ "dependency"
+ ],
+ "properties": {
+ "licenses": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [
+ "name",
+ "url"
+ ],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "url": {
+ "type": "uri"
+ }
+ }
+ }
+ },
+ "license": {
+ "type": "object",
+ "required": [
+ "name"
+ ],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "url": {
+ "type": "uri"
+ }
+ }
+ },
+ "dependency": {
+ "type": "object",
+ "required": [
+ "name",
+ "description"
+ ],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "paths": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "additionalProperties": false
+}