diff --git a/ju/oas.py b/ju/oas.py index f63397b..0772f87 100644 --- a/ju/oas.py +++ b/ju/oas.py @@ -168,11 +168,7 @@ def params(self): (it should usually just be one or the other, not both). We're calling this 'params' because that's what FastAPI calls it. """ - schema = { - 'type': 'object', - 'properties': {}, - 'required': [] - } + schema = {'type': 'object', 'properties': {}, 'required': []} # Process query and path parameters for param in self.method_data.get('parameters', []): @@ -195,4 +191,4 @@ def params(self): if 'required' in body_schema: schema['required'].extend(body_schema['required']) - return schema \ No newline at end of file + return schema diff --git a/ju/tests/oas_test.py b/ju/tests/oas_test.py index f87db07..30b2a03 100644 --- a/ju/tests/oas_test.py +++ b/ju/tests/oas_test.py @@ -85,7 +85,7 @@ def test_routes(openapi_spec): 'type': {'type': 'string'}, 'limit': {'type': 'integer', 'default': 10}, }, - 'required': ['type'] + 'required': ['type'], } post_route = routes['post', '/items'] @@ -133,5 +133,5 @@ def test_routes(openapi_spec): 'name': {'type': 'string'}, 'age': {'type': 'integer', 'default': 42}, }, - 'required': [] + 'required': [], } diff --git a/setup.cfg b/setup.cfg index 66a757f..6025a6a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,7 +2,7 @@ root_url = https://github.com/i2mint/ license = apache-2.0 author = OtoSense -version = 0.1.1 +version = 0.1.2 description = JSON schema Utils description_file = README.md long_description = file:README.md