Skip to content

Commit 914d011

Browse files
gouttegdmatentzn
andauthored
Fix incorrect use of value slots in extra_slots examples. (#243)
Co-authored-by: Nico Matentzoglu <nicolas.matentzoglu@gmail.com>
1 parent 5ab5cec commit 914d011

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

linkml_model/model/schema/meta.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,42 +1368,42 @@ slots:
13681368
- SpecificationSubset
13691369
- BasicSubset
13701370
examples:
1371-
- value:
1371+
- object:
13721372
allowed: true
13731373
description: Allow all additional data
1374-
- value:
1374+
- object:
13751375
allowed: false
13761376
description: Forbid any additional data
1377-
- value:
1377+
- object:
13781378
range_expression:
13791379
range: string
13801380
description: Allow additional data that are strings
1381-
- value:
1381+
- object:
13821382
range_expression:
13831383
range: AClassDefinition
13841384
description: Allow additional data if they are instances of the class definition "AClassDefinition"
1385-
- value:
1385+
- object:
13861386
range_expression:
13871387
any_of:
13881388
- range: string
13891389
- range: integer
13901390
description: allow additional data if they are either strings or integers
1391-
- value:
1391+
- object:
13921392
range_expression:
13931393
range: integer
13941394
multivalued: true
13951395
maximum_cardinality: 5
13961396
description: |
13971397
Allow additional data if they are lists of integers of at most length 5.
13981398
Note that this does *not* mean that a maximum of 5 extra slots are allowed.
1399-
- value:
1399+
- object:
14001400
range_expression:
14011401
range: integer
14021402
required: true
14031403
description: |
14041404
Allow additional data if they are integers.
14051405
`required` is meaningless in this context and ignored, since by definition all "extra" slots are optional.
1406-
- value:
1406+
- object:
14071407
allowed: false
14081408
range_expression:
14091409
range: string

0 commit comments

Comments
 (0)