-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BF: Fix bug and other improvement in SchemaBuilder.add_class()
#338
base: main
Are you sure you want to change the base?
Commits on Aug 27, 2024
-
BF: Correct
SchemaBuilder.add_class()
- Remove use of `kwargs` in setting `cls` if it's given as `ClassDefinition` - Correct detection of duplicating classes - Ensure `slots` is correct type when `use_attributes=True`
Configuration menu - View commit details
-
Copy full SHA for 3f1aba5 - Browse repository at this point
Copy the full SHA 3f1aba5View commit details
Commits on Sep 27, 2024
-
Update example in docstring of
SchemaBuilder
The example is outdated since `SchemaBuilder` no longer resides in `linkml.utils.schema_builder`
Configuration menu - View commit details
-
Copy full SHA for ba0a94f - Browse repository at this point
Copy the full SHA ba0a94fView commit details
Commits on Sep 29, 2024
-
Bundle
slots
into a list ifuse_attributes
is TrueIn this way, the slot definition in `slots` can be added to the class as an attribute, better than raising an exception
Configuration menu - View commit details
-
Copy full SHA for e2256f1 - Browse repository at this point
Copy the full SHA e2256f1View commit details
Commits on Sep 30, 2024
-
Remove the bundling of slots in to a list
The bundling is actually not needed. The type annotation of `slots` already ensures that it is a list or `None`
Configuration menu - View commit details
-
Copy full SHA for 40e3194 - Browse repository at this point
Copy the full SHA 40e3194View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d8fc02 - Browse repository at this point
Copy the full SHA 8d8fc02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c6e3e0 - Browse repository at this point
Copy the full SHA 5c6e3e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81cbf46 - Browse repository at this point
Copy the full SHA 81cbf46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d8ee2e - Browse repository at this point
Copy the full SHA 0d8ee2eView commit details -
Provide test for adding an existing class by name
Test the case of adding a class with a name that is the same as a class that already exists in the schema
Configuration menu - View commit details
-
Copy full SHA for 86bdd6a - Browse repository at this point
Copy the full SHA 86bdd6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 369391e - Browse repository at this point
Copy the full SHA 369391eView commit details -
Configuration menu - View commit details
-
Copy full SHA for bc7354b - Browse repository at this point
Copy the full SHA bc7354bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0517c22 - Browse repository at this point
Copy the full SHA 0517c22View commit details -
Turn
None
values forslots
anduse_attributes
to empty list and…… dict This can simplify the code
Configuration menu - View commit details
-
Copy full SHA for cf4c1a1 - Browse repository at this point
Copy the full SHA cf4c1a1View commit details
Commits on Oct 1, 2024
-
Add back support of
kwargs
param whencls
param is a `ClassDefini……tion` This time with detection of unsupported fields provided by `kwargs`
Configuration menu - View commit details
-
Copy full SHA for 634286f - Browse repository at this point
Copy the full SHA 634286fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 90adb0b - Browse repository at this point
Copy the full SHA 90adb0bView commit details