Skip to content

Commit

Permalink
Merge pull request #564 from xiekeyang/config-schema
Browse files Browse the repository at this point in the history
move defs-config.json to config-schema.json
  • Loading branch information
stevvooe authored Feb 14, 2017
2 parents c16fa01 + 5bf90dd commit c91797c
Show file tree
Hide file tree
Showing 3 changed files with 946 additions and 760 deletions.
105 changes: 102 additions & 3 deletions schema/config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,114 @@
"type": "string"
},
"config": {
"$ref": "defs-config.json#/definitions/config"
"type": "object",
"properties": {
"User": {
"type": "string"
},
"ExposedPorts": {
"$ref": "defs.json#/definitions/mapStringObject"
},
"Env": {
"type": "array",
"items": {
"type": "string"
}
},
"Entrypoint": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"Cmd": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"Volumes": {
"oneOf": [
{
"$ref": "defs.json#/definitions/mapStringObject"
},
{
"type": "null"
}
]
},
"WorkingDir": {
"type": "string"
},
"Labels": {
"oneOf": [
{
"$ref": "defs.json#/definitions/mapStringString"
},
{
"type": "null"
}
]
}
}
},
"rootfs": {
"$ref": "defs-config.json#/definitions/rootfs"
"type": "object",
"properties": {
"diff_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"type": {
"type": "string",
"enum": [
"layers"
]
}
},
"required": [
"diff_ids",
"type"
]
},
"history": {
"type": "array",
"items": {
"$ref": "defs-config.json#/definitions/history"
"type": "object",
"properties": {
"created": {
"type": "string",
"format": "date-time"
},
"author": {
"type": "string"
},
"created_by": {
"type": "string"
},
"comment": {
"type": "string"
},
"empty_layer": {
"type": "boolean"
}
}
}
}
},
Expand Down
113 changes: 0 additions & 113 deletions schema/defs-config.json

This file was deleted.

Loading

0 comments on commit c91797c

Please sign in to comment.