Skip to content

Commit

Permalink
another loading fix
Browse files Browse the repository at this point in the history
  • Loading branch information
berislavlopac committed Mar 10, 2023
1 parent ff843af commit 50a6c71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyapi/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(
super().__init__(**kwargs)
if isinstance(spec, dict):
extra_kwargs: dict[str, Any] = {}
if validate_schema:
if not validate_schema:
extra_kwargs["validator"] = None
spec = Spec.from_dict(spec, spec_url=spec_url, **extra_kwargs)
self.spec: Spec = spec
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pyapi-server"
version = "0.3.2"
version = "0.3.3"
description = "Lightweight API framework using an OpenAPI spec for routing and validation."
readme = "README.md"
license = {text = "MIT"}
Expand Down
1 change: 1 addition & 0 deletions release-notes/0.3.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* minor fix with loading from file

0 comments on commit 50a6c71

Please sign in to comment.