Skip to content

Commit 7be7738

Browse files
committed
NRL-786 update import to remove layer
1 parent 2f6eac9 commit 7be7738

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,13 @@ generate-models: check-warn ## Generate Pydantic Models
199199
--input-file-type openapi \
200200
--output ./layer/nrlf/producer/fhir/r4/model.py \
201201
--output-model-type "pydantic_v2.BaseModel" \
202-
--base-class layer.nrlf.core.parent_model.Parent
202+
--base-class nrlf.core.parent_model.Parent
203203
poetry run datamodel-codegen \
204204
--strict-types {str,bytes,int,float,bool} \
205205
--input ./api/producer/swagger.yaml \
206206
--input-file-type openapi \
207207
--output ./layer/nrlf/producer/fhir/r4/strict_model.py \
208-
--base-class layer.nrlf.core.parent_model.Parent \
208+
--base-class nrlf.core.parent_model.Parent \
209209
--output-model-type "pydantic_v2.BaseModel"
210210

211211

@@ -215,5 +215,5 @@ generate-models: check-warn ## Generate Pydantic Models
215215
--input ./api/consumer/swagger.yaml \
216216
--input-file-type openapi \
217217
--output ./layer/nrlf/consumer/fhir/r4/model.py \
218-
--base-class layer.nrlf.core.parent_model.Parent \
218+
--base-class nrlf.core.parent_model.Parent \
219219
--output-model-type "pydantic_v2.BaseModel"

layer/nrlf/consumer/fhir/r4/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# generated by datamodel-codegen:
22
# filename: swagger.yaml
3-
# timestamp: 2024-12-19T15:23:29+00:00
3+
# timestamp: 2024-12-19T16:03:12+00:00
44

55
from __future__ import annotations
66

77
from typing import Annotated, List, Literal, Optional
88

99
from pydantic import Field, RootModel
1010

11-
from layer.nrlf.core.parent_model import Parent
11+
from nrlf.core.parent_model import Parent
1212

1313

1414
class LocationItem(RootModel[str]):

layer/nrlf/producer/fhir/r4/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# generated by datamodel-codegen:
22
# filename: swagger.yaml
3-
# timestamp: 2024-12-19T15:23:23+00:00
3+
# timestamp: 2024-12-19T16:03:08+00:00
44

55
from __future__ import annotations
66

77
from typing import Annotated, List, Literal, Optional
88

99
from pydantic import ConfigDict, Field, RootModel
1010

11-
from layer.nrlf.core.parent_model import Parent
11+
from nrlf.core.parent_model import Parent
1212

1313

1414
class LocationItem(RootModel[str]):

layer/nrlf/producer/fhir/r4/strict_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: swagger.yaml
3-
# timestamp: 2024-12-19T15:23:26+00:00
3+
# timestamp: 2024-12-19T16:03:10+00:00
44

55
from __future__ import annotations
66

@@ -16,7 +16,7 @@
1616
StrictStr,
1717
)
1818

19-
from layer.nrlf.core.parent_model import Parent
19+
from nrlf.core.parent_model import Parent
2020

2121

2222
class LocationItem(RootModel[StrictStr]):

0 commit comments

Comments
 (0)