Skip to content

Commit b78e5fe

Browse files
committed
fix: update client error schema to support schema errors (box/box-openapi#467)
1 parent 01fd2ac commit b78e5fe

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "2443714", "specHash": "9f75129", "version": "1.5.1" }
1+
{ "engineHash": "2443714", "specHash": "abd6037", "version": "1.5.1" }

box_sdk_gen/schemas/client_error.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from enum import Enum
22

3-
from typing import Optional
4-
53
from box_sdk_gen.internal.base_object import BaseObject
64

5+
from typing import Optional
6+
77

88
class ClientErrorTypeField(str, Enum):
99
ERROR = 'error'
@@ -30,13 +30,8 @@ class ClientErrorCodeField(str, Enum):
3030

3131

3232
class ClientErrorContextInfoField(BaseObject):
33-
def __init__(self, *, message: Optional[str] = None, **kwargs):
34-
"""
35-
:param message: More details on the error., defaults to None
36-
:type message: Optional[str], optional
37-
"""
33+
def __init__(self, **kwargs):
3834
super().__init__(**kwargs)
39-
self.message = message
4035

4136

4237
class ClientError(BaseObject):

0 commit comments

Comments
 (0)