Skip to content

Commit 76db4c8

Browse files
authored
proper importable version (#4)
1 parent 402f7a0 commit 76db4c8

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

gen_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def process_specs(self):
9595
api_name = "core"
9696
# core api has a v0.0.1 in the spec but that will change
9797
# for now use the version provided by a user from the cmd
98-
api_version = self.version
98+
api_version = self.version.replace(".", "_")
9999
logger.debug(f"API name: {api_name}, API version: {api_version}")
100100
self.sanitize_schema_objects(spec_file, api_name, api_version)
101101
self.generate_classes_for_spec(spec_file, api_name, api_version)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pydantic-eda"
3-
version = "0.3.0"
3+
version = "0.3.2"
44
description = "Pydantic models for EDA OpenAPI specification"
55
readme = "README.md"
66
requires-python = "~=3.12"

0 commit comments

Comments
 (0)