Skip to content

Instantly share code, notes, and snippets.

@fabianekc
Created August 19, 2024 08:02
Show Gist options
  • Save fabianekc/74736d64073704ba7ff0f259261c7592 to your computer and use it in GitHub Desktop.
Save fabianekc/74736d64073704ba7ff0f259261c7592 to your computer and use it in GitHub Desktop.
meta:
name: DRI123
content:
bases:
- name: Person
attributes:
name: String
dateOfBirth: Date
age: Integer
sex: String
overlays:
- type: OverlayValidation
base: Person
class:
attributes:
name:
cardinality: "1..1"
length: "[0..20)"
pattern: "^[a-zA-Z]+$"
dateOfBirth:
cardinality: "1..1"
valueRange: "[1900-01-01..*]"
age:
cardinality: "0..1"
valueRange: "[0..*]"
sex:
cardinality: "0..1"
valueOption:
- male
- female
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment