-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
raise an error when two classes have the same ambiguous attribute
Closes linkml/linkml#2403 Signed-off-by: Vincent Kelleher <[email protected]>
- Loading branch information
Vincent Kelleher
committed
Dec 5, 2024
1 parent
ad74966
commit ad8d5ad
Showing
3 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
tests/test_utils/input/get_slot_with_ambiguous_attributes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
id: https://examples.org/get-slot-with-attribute# | ||
name: get-slot-with-attribute | ||
|
||
prefixes: | ||
test: https://examples.org/get-slot-with-attribute# | ||
|
||
default_prefix: test | ||
default_range: string | ||
|
||
classes: | ||
ClassWithAttributes: | ||
attributes: | ||
randomAttribute: | ||
description: "A random attribute for testing purposes" | ||
range: integer | ||
minimum_value: 0 | ||
maximum_value: 999 | ||
|
||
ImportantSecondClass: | ||
description: "Important class to reproduce the error I got as the class loop needs to have at least a | ||
second iteration" | ||
attributes: | ||
randomAttribute: | ||
description: "Now you see the ambiguity intensifying ?" | ||
range: integer | ||
minimum_value: 0 | ||
maximum_value: 111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters