Skip to content

Commit ecac851

Browse files
authored
Fixed naming of schema base classes (#254)
1 parent 3a37755 commit ecac851

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

oarepo_model_builder/validation/model_validation.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,16 @@ class Meta:
3838

3939

4040
class MarshmallowSettingsSchema(ma.Schema):
41-
schema_base_class = ma.fields.String()
42-
ui_schema_base_class = ma.fields.String()
41+
schema_base_class = ma.fields.String(
42+
attribute="schema-base-class",
43+
data_key="schema-base-class",
44+
default="oarepo_runtime.services.schema.marshmallow.DictOnlySchema",
45+
)
46+
ui_schema_base_class = ma.fields.String(
47+
attribute="ui-schema-base-class",
48+
data_key="ui-schema-base-class",
49+
default="oarepo_runtime.services.schema.marshmallow.DictOnlySchema",
50+
)
4351

4452

4553
class SettingsSchema(ma.Schema):

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = oarepo-model-builder
3-
version = 4.0.75
3+
version = 4.0.76
44
description = A utility library that generates OARepo required data model files from a JSON specification file
55
authors = Miroslav Bauer <[email protected]>, Miroslav Simek <[email protected]>
66
readme = README.md

0 commit comments

Comments
 (0)