Skip to content

Commit

Permalink
Merge pull request #204 from enolfc/image-sync-schema
Browse files Browse the repository at this point in the history
Add image sync fields to schema
  • Loading branch information
tdviet authored Jul 17, 2024
2 parents af70cec + 9ccc98a commit 97c78db
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions fedcloudclient/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@
"title": "site specs",
"description": "site configuration schema",
"definitions": {
"imagesdata": {
"type": "object",
"properties": {
"sync": {
"type": "boolean",
"description": "Do image synchronisation",
"default": false
},
"formats": {
"type": "array",
"title": "formats",
"description": "Supported VM image formats at the site.",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"vodata": {
"type": "object",
"properties": {
Expand All @@ -22,17 +41,11 @@
}
}
},
"required": [
"auth",
"name"
],
"required": ["auth", "name"],
"additionalProperties": true
}
},
"required": [
"gocdb",
"endpoint"
],
"required": ["gocdb", "endpoint"],
"properties": {
"gocdb": {
"$id": "#/properties/gocdb",
Expand Down Expand Up @@ -70,6 +83,13 @@
"items": {
"$ref": "#/definitions/vodata"
}
},
"images": {
"$id": "#/properties/images",
"title": "Image Configuration",
"description": "Image configuration",
"type": "object",
"$ref": "#/definitions/imagesdata"
}
},
"additionalProperties": false
Expand Down

0 comments on commit 97c78db

Please sign in to comment.