From 356e9e3d6a22c0105f1622a251cc1c3590f3b296 Mon Sep 17 00:00:00 2001 From: Steven Chuang Date: Tue, 30 Jan 2024 11:00:35 -0800 Subject: [PATCH] feat: Add BaseVersionedAspect.pdl (#344) * Add BaseVersionedAspect.pdl * Revert local dev changes * Address PR * Add comments * Add comments --- .../metadata/aspect/BaseVersionedAspect.pdl | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 dao-api/src/main/pegasus/com/linkedin/metadata/aspect/BaseVersionedAspect.pdl diff --git a/dao-api/src/main/pegasus/com/linkedin/metadata/aspect/BaseVersionedAspect.pdl b/dao-api/src/main/pegasus/com/linkedin/metadata/aspect/BaseVersionedAspect.pdl new file mode 100644 index 000000000..03d8a0f4c --- /dev/null +++ b/dao-api/src/main/pegasus/com/linkedin/metadata/aspect/BaseVersionedAspect.pdl @@ -0,0 +1,28 @@ +namespace com.linkedin.metadata.aspect + +/** +* A base record containing semantic version of aspects +* Usage: Aspects can include this record to add semantic version metadata to themselves +*/ +record BaseVersionedAspect { + + /** + * The version of the metadata aspect + */ + baseSematicVersion: optional record BaseSematicVersion { + /** + * The major version of this version. This is the x in x.y.z. + */ + major: int + + /** + * The minor version of this version. This is the y in x.y.z + */ + minor: int + + /** + * The patch version of this version. This is the z in x.y.z + */ + patch: int + } +}