Browse Source

Fix schema validation (#535)

pull/536/head
Justin Kotalik 6 years ago
committed by GitHub
parent
commit
a60099f0ce
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 48
      src/schema/tye-schema.json

48
src/schema/tye-schema.json

@ -52,6 +52,9 @@
{ {
"$ref": "#/definitions/image" "$ref": "#/definitions/image"
}, },
{
"$ref": "#/definitions/dockerFile"
},
{ {
"$ref": "#/definitions/project" "$ref": "#/definitions/project"
}, },
@ -270,6 +273,48 @@
"description": "The name of a Docker image.", "description": "The name of a Docker image.",
"type": "string" "type": "string"
}, },
"env": {
"description": "Environment variables to use when launching.",
"type": "array",
"items": {
"$ref": "#/definitions/env-var"
}
},
"args": {
"description": "Command-line arguments to use when launching.",
"type": "string"
},
"replicas": {
"description": "Number of service replicas to create.",
"type": "integer"
},
"bindings": {
"description": "The bindings provided by the service.",
"type": "array",
"items": {
"$ref": "#/definitions/binding"
}
}
},
"required": [
"name",
"image"
]
},
"dockerFile": {
"type": "object",
"properties": {
"name": {
"description": "The service name. Must be unique per-application.",
"type": "string"
},
"volumes": {
"description": "Volumes to mount to the container.",
"type": "array",
"items": {
"$ref": "#/definitions/volume"
}
},
"dockerFile": { "dockerFile": {
"description": "The Dockerfile to use.", "description": "The Dockerfile to use.",
"type": "string" "type": "string"
@ -302,7 +347,8 @@
} }
}, },
"required": [ "required": [
"name" "name",
"dockerFile"
] ]
}, },
"ingress": { "ingress": {

Loading…
Cancel
Save