From b283e8b0bf1c9f06097730f4b7d0421ed9a02ca3 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Fri, 15 Sep 2023 00:50:16 -0700 Subject: [PATCH] get correct path for provider --- docs/api/nwb_linkml/types/index.md | 4 ++++ nwb_linkml/src/nwb_linkml/providers/schema.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 docs/api/nwb_linkml/types/index.md diff --git a/docs/api/nwb_linkml/types/index.md b/docs/api/nwb_linkml/types/index.md new file mode 100644 index 0000000..937ba6a --- /dev/null +++ b/docs/api/nwb_linkml/types/index.md @@ -0,0 +1,4 @@ +# Types + +Special types for nwb_linkml :) + diff --git a/nwb_linkml/src/nwb_linkml/providers/schema.py b/nwb_linkml/src/nwb_linkml/providers/schema.py index bb0c07b..b5a4b06 100644 --- a/nwb_linkml/src/nwb_linkml/providers/schema.py +++ b/nwb_linkml/src/nwb_linkml/providers/schema.py @@ -155,7 +155,7 @@ class Provider(ABC): if self.PROVIDES == 'linkml': namespace_path = module_path / 'schema' elif self.PROVIDES == 'pydantic': - namespace_path = module_path / 'models' + namespace_path = module_path / 'models' / 'pydantic' if version is not None: version_path = namespace_path / version_module_case(version)