mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-25 11:09:53 +00:00
PEP8 fixes
This commit is contained in:
parent
4e1a61aace
commit
36f7d4edf4
4 changed files with 6 additions and 6 deletions
|
@ -1 +1 @@
|
||||||
"""OpenAPI extensions package"""
|
"""OpenAPI extensions package"""
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
"""OpenAPI X-Model extension package"""
|
"""OpenAPI X-Model extension package"""
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
import logging
|
import logging
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from openapi_core.schema.parameters.enums import ParameterLocation, ParameterStyle
|
from openapi_core.schema.parameters.enums import (
|
||||||
|
ParameterLocation, ParameterStyle,
|
||||||
|
)
|
||||||
from openapi_core.schema.parameters.exceptions import (
|
from openapi_core.schema.parameters.exceptions import (
|
||||||
MissingRequiredParameter, MissingParameter, InvalidParameterValue,
|
MissingRequiredParameter, MissingParameter, InvalidParameterValue,
|
||||||
EmptyParameterValue,
|
EmptyParameterValue,
|
||||||
|
@ -83,7 +85,7 @@ class Parameter(object):
|
||||||
if not self.schema or self.schema.default is None:
|
if not self.schema or self.schema.default is None:
|
||||||
raise MissingParameter(
|
raise MissingParameter(
|
||||||
"Missing `{0}` parameter".format(self.name))
|
"Missing `{0}` parameter".format(self.name))
|
||||||
|
|
||||||
raw = self.schema.default
|
raw = self.schema.default
|
||||||
|
|
||||||
if self.aslist and self.explode:
|
if self.aslist and self.explode:
|
||||||
|
|
|
@ -4,8 +4,6 @@ from functools import lru_cache
|
||||||
|
|
||||||
from openapi_spec_validator import openapi_v3_spec_validator
|
from openapi_spec_validator import openapi_v3_spec_validator
|
||||||
|
|
||||||
from openapi_core.schema.operations.exceptions import InvalidOperation
|
|
||||||
from openapi_core.schema.servers.exceptions import InvalidServer
|
|
||||||
from openapi_core.schema.components.factories import ComponentsFactory
|
from openapi_core.schema.components.factories import ComponentsFactory
|
||||||
from openapi_core.schema.infos.factories import InfoFactory
|
from openapi_core.schema.infos.factories import InfoFactory
|
||||||
from openapi_core.schema.paths.generators import PathsGenerator
|
from openapi_core.schema.paths.generators import PathsGenerator
|
||||||
|
|
Loading…
Reference in a new issue