Skip to content

Commit

Permalink
Fixed naming of schema base classes (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
mesemus authored Feb 27, 2024
1 parent 3a37755 commit ecac851
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions oarepo_model_builder/validation/model_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,16 @@ class Meta:


class MarshmallowSettingsSchema(ma.Schema):
schema_base_class = ma.fields.String()
ui_schema_base_class = ma.fields.String()
schema_base_class = ma.fields.String(
attribute="schema-base-class",
data_key="schema-base-class",
default="oarepo_runtime.services.schema.marshmallow.DictOnlySchema",
)
ui_schema_base_class = ma.fields.String(
attribute="ui-schema-base-class",
data_key="ui-schema-base-class",
default="oarepo_runtime.services.schema.marshmallow.DictOnlySchema",
)


class SettingsSchema(ma.Schema):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-model-builder
version = 4.0.75
version = 4.0.76
description = A utility library that generates OARepo required data model files from a JSON specification file
authors = Miroslav Bauer <[email protected]>, Miroslav Simek <[email protected]>
readme = README.md
Expand Down

0 comments on commit ecac851

Please sign in to comment.