Files
pegleg/pegleg/schemas/deckhand-metadata-document.yaml
Felipe Monteiro 893ea9f4bb Standardize Pegleg directory structure
This patch set standardizes the Pegleg directory
structure because of the following reasons:

1) src/bin/pegleg is not necessary and only makes
building (e.g. documentation building) and running
of tox targets unnecessarily difficult.
2) src/bin/pegleg is a Java-like standard that
bears no relevance to Python.

Change-Id: I37d39d3d6186b92f8fbfe234221c9e44da48cf10
2018-09-23 10:33:40 -04:00

104 lines
1.8 KiB
YAML

$schema: http://json-schema.org/schema#
definitions:
action:
type: object
properties:
method:
type: string
enum:
- delete
- merge
- replace
path:
$ref: '#/definitions/path'
additionalProperties: false
required:
- method
- path
labels:
type: object
path:
type: string
schema:
type: string
pattern: '^.+/.+/v[0-9](\.[0-9])?$'
substitution:
type: object
properties:
dest:
type: object
properties:
path:
$ref: '#/definitions/path'
pattern:
type: string
additionalProperties: false
required:
- path
src:
type: object
properties:
name:
type: string
path:
$ref: '#/definitions/path'
schema:
$ref: '#/definitions/schema'
required:
- name
- path
- schema
additionalProperties: false
required:
- dest
- src
type: object
properties:
schema:
type: string
pattern: '^metadata/Document/v1$'
name:
type: string
labels:
$ref: '#/definitions/labels'
layeringDefinition:
type: object
properties:
abstract:
type: boolean
layer:
type: string
parentSelector:
$ref: '#/definitions/labels'
actions:
type: array
items:
$ref: '#/definitions/action'
additionalProperties: false
required:
- abstract
- layer
storagePolicy:
type: string
enum:
- cleartext
- encrypted
substitutions:
type: array
items:
$ref: '#/definitions/substitution'
additionalProperties: false
required:
- schema
- name
- layeringDefinition
- storagePolicy