Skip to content

Commit f6c056a

Browse files
authored
Merge pull request #203 from Geode-solutions/fix/print-params
fix(Schemas): print params
2 parents fae545d + bf8c686 commit f6c056a

23 files changed

+67
-2
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
},

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,3 @@ werkzeug==3.1.2
6060
# flask
6161
# flask-cors
6262

63-
opengeodeweb-microservice==1.*,>=1.0.8

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) -> None:
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) -> None:
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) -> None:
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) -> None:
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) -> None:
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) -> None:
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) -> None:
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) -> None:
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) -> None:
9+
print(self, flush=True)
10+
811
filename: str
912
snapshot: Dict[str, Any]

0 commit comments

Comments
 (0)