We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7955faa commit c08dcccCopy full SHA for c08dccc
openapi_python_client/parser/properties/enum_property.py
@@ -4,6 +4,7 @@
4
5
import attr
6
7
+from ... import schema as oai
8
from ... import utils
9
from .property import Property
10
from .schemas import Class
@@ -22,6 +23,13 @@ class EnumProperty(Property):
22
23
24
template: ClassVar[str] = "enum_property.py.jinja"
25
26
+ _allowed_locations: ClassVar[Set[oai.ParameterLocation]] = {
27
+ oai.ParameterLocation.QUERY,
28
+ oai.ParameterLocation.PATH,
29
+ oai.ParameterLocation.COOKIE,
30
+ oai.ParameterLocation.HEADER,
31
+ }
32
+
33
def get_base_type_string(self) -> str:
34
return self.class_info.name
35
0 commit comments