Skip to content

Commit e0ea208

Browse files
committed
fix(Schemas): print params
1 parent fae545d commit e0ea208

22 files changed

+67
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"description": "",
55
"scripts": {
6-
"json": "node ./node_modules/@geode/opengeodeweb-microservice/generate_schemas.js opengeodeweb_back routes route /",
6+
"json": "npx opengeodeweb-microservice-generate opengeodeweb_back routes route /",
77
"test": "npm run json",
88
"build": "npm run json"
99
},

src/opengeodeweb_back/routes/create/schemas/create_aoi.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@
55

66
@dataclass
77
class Point(DataClassJsonMixin):
8+
def __post_init__(self):
9+
print(self, flush=True)
10+
811
x: float
912
y: float
1013

1114

1215
@dataclass
1316
class CreateAoi(DataClassJsonMixin):
17+
def __post_init__(self):
18+
print(self, flush=True)
19+
1420
name: str
1521
"""Name of the AOI"""
1622

src/opengeodeweb_back/routes/create/schemas/create_point.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
@dataclass
66
class CreatePoint(DataClassJsonMixin):
7+
def __post_init__(self):
8+
print(self, flush=True)
9+
710
name: str
811
x: float
912
y: float

src/opengeodeweb_back/routes/create/schemas/create_voi.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
@dataclass
77
class CreateVoi(DataClassJsonMixin):
8+
def __post_init__(self):
9+
print(self, flush=True)
10+
811
aoi_id: str
912
"""ID of the corresponding AOI"""
1013

src/opengeodeweb_back/routes/models/schemas/mesh_components.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44

55
@dataclass
66
class MeshComponents(DataClassJsonMixin):
7+
def __post_init__(self):
8+
print(self, flush=True)
9+
710
id: str

src/opengeodeweb_back/routes/models/schemas/vtm_component_indices.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44

55
@dataclass
66
class VtmComponentIndices(DataClassJsonMixin):
7+
def __post_init__(self):
8+
print(self, flush=True)
9+
710
id: str

src/opengeodeweb_back/routes/schemas/allowed_files.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@
55

66
@dataclass
77
class AllowedFiles(DataClassJsonMixin):
8+
def __post_init__(self):
9+
print(self, flush=True)
10+
811
supported_feature: Optional[str] = None

src/opengeodeweb_back/routes/schemas/allowed_objects.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55

66
@dataclass
77
class AllowedObjects(DataClassJsonMixin):
8+
def __post_init__(self):
9+
print(self, flush=True)
10+
811
filename: str
912
supported_feature: Optional[str] = None

src/opengeodeweb_back/routes/schemas/export_project.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55

66
@dataclass
77
class ExportProject(DataClassJsonMixin):
8+
def __post_init__(self):
9+
print(self, flush=True)
10+
811
filename: str
912
snapshot: Dict[str, Any]

src/opengeodeweb_back/routes/schemas/geode_objects_and_output_extensions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44

55
@dataclass
66
class GeodeObjectsAndOutputExtensions(DataClassJsonMixin):
7+
def __post_init__(self):
8+
print(self, flush=True)
9+
710
filename: str
811
input_geode_object: str

0 commit comments

Comments
 (0)