Skip to content

Commit

Permalink
Merge pull request #64 from nens/pydantic-fixes
Browse files Browse the repository at this point in the history
fixed some pydantic tpehints
  • Loading branch information
JJFlorian authored Apr 23, 2024
2 parents 3fa383a + dd7fe50 commit 2da6211
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions api/bro_upload/upload_datamodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Metadata(BaseModel):
class MeasuringPoint(BaseModel):
measuringPointCode: str
broId: str
tubeNumber: str
tubeNumber: str | int


class GMNStartregistration(BaseModel):
Expand All @@ -30,14 +30,14 @@ class GMNMeasuringPoint(BaseModel):
eventDate: str
measuringPointCode: str
broId: str
tubeNumber: str
tubeNumber: str | int


class GMNMeasuringPointEndDate(BaseModel):
eventDate: str
measuringPointCode: str
broId: str
tubeNumber: str
tubeNumber: str | int


class GMNTubeReference(BaseModel):
Expand All @@ -50,35 +50,35 @@ class GMNClosure(BaseModel):


class Electrode(BaseModel):
electrodeNumber: str
electrodeNumber: str | int
electrodePackingMaterial: str
electrodeStatus: str
electrodeStatus: str
electrodePosition: str


class GeoOhmCable(BaseModel):
cableNumber: str
cableNumber: str | int
electrodes: list[Electrode]


class MonitoringTube(BaseModel):
tubeNumber: str
tubeNumber: str | int
tubeType: str
artesianWellCapPresent: str
sedimentSumpPresent: str
numberOfGeoOhmCables: str
tubeTopDiameter: str
variableDiameter: str
numberOfGeoOhmCables: str | int
tubeTopDiameter: str | float
variableDiameter: str | float
tubeStatus: str
tubeTopPosition: str
tubeTopPosition: str | float
tubeTopPositioningMethod: str
tubePackingMaterial: str
tubeMaterial: str
glue: str
screenLength: str
screenLength: str | float
sockMaterial: str
plainTubePartLength: str
sedimentSumpLength: str
plainTubePartLength: str | float
sedimentSumpLength: str | float
geoohmcables: list[GeoOhmCable] | None = None


Expand All @@ -87,7 +87,7 @@ class GMWConstruction(BaseModel):
deliveryContext: str
constructionStandard: str
initialFunction: str
numberOfMonitoringTubes: str
numberOfMonitoringTubes: str | int
groundLevelStable: str
owner: str
maintenanceResponsibleParty: str
Expand All @@ -96,8 +96,8 @@ class GMWConstruction(BaseModel):
deliveredLocation: str
horizontalPositioningMethod: str
localVerticalReferencePoint: str
offset: str
offset: str | float
verticalDatum: str
groundLevelPosition: str
groundLevelPosition: str | float
groundLevelPositioningMethod: str
monitoringTubes: list[MonitoringTube]

0 comments on commit 2da6211

Please sign in to comment.