Skip to content

Commit be92b63

Browse files
revert _base.py
1 parent 0db6bc5 commit be92b63

File tree

1 file changed

+7
-3
lines changed
  • packages/models-library/src/models_library/api_schemas_webserver

1 file changed

+7
-3
lines changed

packages/models-library/src/models_library/api_schemas_webserver/_base.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,27 @@ class InputSchemaWithoutCamelCase(BaseModel):
2222
)
2323

2424

25-
class InputSchema(InputSchemaWithoutCamelCase):
25+
class InputSchema(BaseModel):
2626
model_config = ConfigDict(
27+
**InputSchemaWithoutCamelCase.model_config,
2728
alias_generator=snake_to_camel,
2829
)
2930

3031

3132
class OutputSchemaWithoutCamelCase(BaseModel):
3233
model_config = ConfigDict(
3334
populate_by_name=True,
34-
extra="ignore", # Used to prune extra fields from internal data
35+
extra="ignore",
3536
frozen=True,
3637
)
3738

3839

39-
class OutputSchema(OutputSchemaWithoutCamelCase):
40+
class OutputSchema(BaseModel):
4041
model_config = ConfigDict(
4142
alias_generator=snake_to_camel,
43+
populate_by_name=True,
44+
extra="ignore", # Used to prune extra fields from internal data
45+
frozen=True,
4246
)
4347

4448
def data(

0 commit comments

Comments
 (0)