deckhand/deckhand/engine/schemas
Felipe Monteiro 5c411dd05b Fix: Document should not layer with parent if no layering actions
Currently, if a document has a parent but no layering actions,
the document immediately inherents its parents' data, which is a
bug. Instead, the child document should only layer with its
parent's data and then update its own data if it has at least
one layering action.

In addition, the base_schema.yaml under `deckhand.schemas`
has been updated to require that actions be required and
contain at least 1 layering action when parentSelector
is provided and that parentSelector be required when
actions is provided and that at least one key-value
pair be provided. (Empty actions array or empty
parentSelector object is meaningless and should be
disallowed/discouraged.)

This means that actions and parentSelector must always
both be provided (though providing neither is also
legal because layering is optional).

Unit tests have been added to verify the schema updates.

Change-Id: I77d54e2b216efc54b466f94d82ee8d36ca169c26
2018-03-15 12:27:31 -04:00
..
base_schema.yaml Fix: Document should not layer with parent if no layering actions 2018-03-15 12:27:31 -04:00
certificate_authority_key_schema.yaml Deckhand schemas as YAML files 2018-02-27 11:16:30 -05:00
certificate_authority_schema.yaml Deckhand schemas as YAML files 2018-02-27 11:16:30 -05:00
certificate_key_schema.yaml Deckhand schemas as YAML files 2018-02-27 11:16:30 -05:00
certificate_schema.yaml Deckhand schemas as YAML files 2018-02-27 11:16:30 -05:00
dataschema_schema.yaml Deckhand schemas as YAML files 2018-02-27 11:16:30 -05:00
layering_policy_schema.yaml Deckhand schemas as YAML files 2018-02-27 11:16:30 -05:00
passphrase_schema.yaml Deckhand schemas as YAML files 2018-02-27 11:16:30 -05:00
private_key_schema.yaml Deckhand schemas as YAML files 2018-02-27 11:16:30 -05:00
public_key_schema.yaml Deckhand schemas as YAML files 2018-02-27 11:16:30 -05:00
validation_policy_schema.yaml Deckhand schemas as YAML files 2018-02-27 11:16:30 -05:00