Skip to content
Snippets Groups Projects
Verified Commit 5903beb2 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

DOC: Better yaml inheritance documentation.

parent 52cd18a9
No related branches found
No related tags found
2 merge requests!54REL: Release 0.5.0,!52Emacs extras
Pipeline #27066 passed
......@@ -98,7 +98,6 @@ would declare a list of elements with datatype Project.
Keywords
========
- **parent**: Parent of this entity.
- **importance**: Importance of this entity. Possible values: "recommended", "obligatory", "suggested"
- **datatype**: The datatype of this property, e.g. TEXT, INTEGER or Project.
- **unit**: The unit of the property, e.g. "m/s".
......@@ -106,9 +105,11 @@ Keywords
- **recommended_properties**: Add properties to this entity with importance "recommended".
- **obligatory_properties**: Add properties to this entity with importance "obligatory".
- **suggested_properties**: Add properties to this entity with importance "suggested".
- **inherit_from_recommended**: Inherit from another entity using the specified importance level including the higher importance level "obligatory". This would add a corresponding parent and add all obligatory and recommended properties from the parent.
- **inherit_from_suggested including higher importance levels**: Inherit from another entity using the specified importance level. This would add a corresponding parent and add all obligatory, recommended and suggested properties from the parent.
- **inherit_from_obligatory**: Inherit from another entity using the specified importance level. This would add a corresponding parent and add all obligatory properties from the parent.
- **inherit_from_XXX**: This keyword accepts a list of other RecordTypes. Those RecordTypes are
added as parents, and all Properties with at least the importance ``XXX`` are inherited. For
example, ``inherited_from_recommended`` will inherit all Properties of importance ``recommended``
and ``obligatory``, but not ``suggested``.
- **parent**: Parent of this entity. (*Deprecated*)
Usage
=====
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment