Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #21 from stack-spot/val-regex-fields
Browse files Browse the repository at this point in the history
Val regex fields
  • Loading branch information
pedrohrfz authored Feb 13, 2023
2 parents b63e1f3 + db8023c commit 343fdd0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stackspot_store/schemas/metadata/v1/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"version": {
"type": "string",
"pattern": "^(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-]+)*))?$"
"pattern": "^\\d{1,2}.\\d{1,2}.\\d{1,3}$|^latest$"
},
"picture": {
"type": "string"
Expand Down
7 changes: 7 additions & 0 deletions stackspot_store/schemas/plugin/v1/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@
"items": {
"type": "string"
}
},
"repository": {
"type": "string"
},
"requires-plugin": {
"type": "array",
"items": {"type": "string"}
}
}
}
7 changes: 2 additions & 5 deletions stackspot_store/schemas/plugin/v1/app-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@
"inputs-envs": { "$ref": "https://raw.githubusercontent.com/stack-spot/schemastore-stackspot/main/stackspot_store/schemas/plugin/v1/_definitions.json#/definitions/inputs" },
"compatibility": { "$ref": "https://raw.githubusercontent.com/stack-spot/schemastore-stackspot/main/stackspot_store/schemas/plugin/v1/_definitions.json#/definitions/compatibility" },
"technologies": { "$ref": "https://raw.githubusercontent.com/stack-spot/schemastore-stackspot/main/stackspot_store/schemas/plugin/v1/_definitions.json#/definitions/technologies" },
"repository": { "type": "string"},
"repository": { "$ref": "https://raw.githubusercontent.com/stack-spot/schemastore-stackspot/main/stackspot_store/schemas/plugin/v1/_definitions.json#/definitions/repository" },
"requires": {
"type": "object",
"properties": {
"plugin": {
"type": "array",
"items": {"type": "string"}
},
"plugin": { "$ref": "https://raw.githubusercontent.com/stack-spot/schemastore-stackspot/main/stackspot_store/schemas/plugin/v1/_definitions.json#/definitions/requires-plugin" },
"connection-interface": { "$ref": "https://raw.githubusercontent.com/stack-spot/schemastore-stackspot/main/stackspot_store/schemas/plugin/v1/_definitions.json#/definitions/connection-interface" }
}
}
Expand Down
2 changes: 1 addition & 1 deletion stackspot_store/schemas/plugin/v1/infra-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"inputs-envs": { "$ref": "https://raw.githubusercontent.com/stack-spot/schemastore-stackspot/main/stackspot_store/schemas/plugin/v1/_definitions.json#/definitions/inputs" },
"compatibility": { "$ref": "https://raw.githubusercontent.com/stack-spot/schemastore-stackspot/main/stackspot_store/schemas/plugin/v1/_definitions.json#/definitions/compatibility" },
"technologies": { "$ref": "https://raw.githubusercontent.com/stack-spot/schemastore-stackspot/main/stackspot_store/schemas/plugin/v1/_definitions.json#/definitions/technologies" },
"repository": { "type": "string"},
"repository": { "$ref": "https://raw.githubusercontent.com/stack-spot/schemastore-stackspot/main/stackspot_store/schemas/plugin/v1/_definitions.json#/definitions/repository" },
"generates": { "$ref": "https://raw.githubusercontent.com/stack-spot/schemastore-stackspot/main/stackspot_store/schemas/plugin/v1/_definitions.json#/definitions/generates" },
"requires": {
"type": "object",
Expand Down

0 comments on commit 343fdd0

Please sign in to comment.