oarepo-runtime 1.5.104__py3-none-any.whl → 1.5.106__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,5 +31,5 @@ class MultilingualAwardSchema(AwardRelationSchema):
31
31
  class FundingSchema(ma.Schema):
32
32
  """Funding schema."""
33
33
 
34
- funder = fields.Nested(FunderRelationSchema, required=True)
35
- award = fields.Nested(MultilingualAwardSchema)
34
+ funder = ma_fields.Nested(FunderRelationSchema, required=True)
35
+ award = ma_fields.Nested(MultilingualAwardSchema)
@@ -1,5 +1,6 @@
1
1
  import marshmallow as ma
2
2
  from oarepo_runtime.services.schema.marshmallow import DictOnlySchema
3
+ from oarepo_vocabularies.services.ui_schema import VocabularyI18nStrUIField
3
4
 
4
5
  class RDMIdentifierWithSchemaUISchema(ma.Schema):
5
6
  scheme = ma.fields.String(
@@ -39,17 +40,17 @@ class RDMRoleVocabularyUISchema(DictOnlySchema):
39
40
  class Meta:
40
41
  unknown = ma.INCLUDE
41
42
 
42
- _id = String(data_key="id", attribute="id")
43
+ _id = ma.fields.String(data_key="id", attribute="id")
43
44
 
44
- _version = String(data_key="@v", attribute="@v")
45
+ _version = ma.fields.String(data_key="@v", attribute="@v")
45
46
 
46
47
  class RDMAwardVocabularyUISchema(DictOnlySchema):
47
48
  class Meta:
48
49
  unknown = ma.INCLUDE
49
50
 
50
- _id = String(data_key="id", attribute="id")
51
+ _id = ma.fields.String(data_key="id", attribute="id")
51
52
 
52
- _version = String(data_key="@v", attribute="@v")
53
+ _version = ma.fields.String(data_key="@v", attribute="@v")
53
54
 
54
55
  title = VocabularyI18nStrUIField()
55
56
 
@@ -71,9 +72,9 @@ class RDMFundersUISchema(ma.Schema):
71
72
  class Meta:
72
73
  unknown = ma.RAISE
73
74
 
74
- funder = ma_fields.Nested(lambda: RDMFunderVocabularyUISchema())
75
+ funder = ma.fields.Nested(lambda: RDMFunderVocabularyUISchema())
75
76
 
76
- award = ma_fields.Nested(lambda: RDMAwardVocabularyUISchema())
77
+ award = ma.fields.Nested(lambda: RDMAwardVocabularyUISchema())
77
78
 
78
79
 
79
80
  class RDMPersonOrOrganizationUISchema(ma.Schema):
@@ -108,6 +109,6 @@ class RDMCreatorsUISchema(ma.Schema):
108
109
 
109
110
  role = ma.fields.Nested(lambda: RDMRoleVocabularyUISchema())
110
111
 
111
- affiliations = ma.fields.List(ma_fields.Nested(lambda: RDMAffiliationVocabularyUISchema()))
112
+ affiliations = ma.fields.List(ma.fields.Nested(lambda: RDMAffiliationVocabularyUISchema()))
112
113
 
113
- person_or_org = ma_fields.Nested(RDMPersonOrOrganizationUISchema())
114
+ person_or_org = ma.fields.Nested(RDMPersonOrOrganizationUISchema())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: oarepo-runtime
3
- Version: 1.5.104
3
+ Version: 1.5.106
4
4
  Summary: A set of runtime extensions of Invenio repository
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -126,8 +126,8 @@ oarepo_runtime/services/schema/marshmallow.py,sha256=iAMMH5MlYs59qetXAHOROvERNSc
126
126
  oarepo_runtime/services/schema/marshmallow_to_json_schema.py,sha256=VYLnVWHOoaxWCD_gqJO8-8u1SbaPEFBjDZ5HGgGr0Ow,2027
127
127
  oarepo_runtime/services/schema/oneofschema.py,sha256=GnWH4Or_G5M0NgSmCoqMI6PBrJg5AC9RHrcB5QDKRq0,6661
128
128
  oarepo_runtime/services/schema/polymorphic.py,sha256=bAbUoTIeDBiJPYPhpLEKKZekEdkHlpqkmNxk1hN3PDw,564
129
- oarepo_runtime/services/schema/rdm.py,sha256=ckcv_imYCG56_qwxVDZCt04D0tvI8I--NLHQU6iTwVc,1242
130
- oarepo_runtime/services/schema/rdm_ui.py,sha256=rAaEfASbERy_LM7gdHMBfpG2sRQThyf1oK6vtr9EfMs,2910
129
+ oarepo_runtime/services/schema/rdm.py,sha256=BDmjWrBQmBN4QbQE9t7EUNUuZ4uCtAAtJ0bQvJWQLtc,1249
130
+ oarepo_runtime/services/schema/rdm_ui.py,sha256=Vs9kOaQ0ZPPZpSqEXlu0vQrt-458Aci9u9T4YONSJLs,3026
131
131
  oarepo_runtime/services/schema/ui.py,sha256=hHbj1S-DW1WqgYX31f6UjarY4wrE-qFLpH3oUhvGLyE,6192
132
132
  oarepo_runtime/services/schema/validation.py,sha256=VFOKSxQLHwFb7bW8BJAFXWe_iTAZFOfqOnb2Ko_Yxxc,2085
133
133
  oarepo_runtime/translations/default_translations.py,sha256=060GBlA1ghWxfeumo6NqxCCZDb-6OezOuF6pr-_GEOQ,104
@@ -143,9 +143,9 @@ tests/marshmallow_to_json/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
143
143
  tests/marshmallow_to_json/test_datacite_ui_schema.py,sha256=82iLj8nW45lZOUewpWbLX3mpSkpa9lxo-vK-Qtv_1bU,48552
144
144
  tests/marshmallow_to_json/test_simple_schema.py,sha256=izZN9p0v6kovtSZ6AdxBYmK_c6ZOti2_z_wPT_zXIr0,1500
145
145
  tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
146
- oarepo_runtime-1.5.104.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
147
- oarepo_runtime-1.5.104.dist-info/METADATA,sha256=fcQq0-4iGSSdX-gylDoUeAQ4kNogetyenOB3S6fVBUQ,4721
148
- oarepo_runtime-1.5.104.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
149
- oarepo_runtime-1.5.104.dist-info/entry_points.txt,sha256=k7O5LZUOGsVeSpB7ulU0txBUNp1CVQG7Q7TJIVTPbzU,491
150
- oarepo_runtime-1.5.104.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
151
- oarepo_runtime-1.5.104.dist-info/RECORD,,
146
+ oarepo_runtime-1.5.106.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
147
+ oarepo_runtime-1.5.106.dist-info/METADATA,sha256=nth_2oEsi3Ee8Ztqan5Tt-b7b72d25C7KrjbhpvL9eU,4721
148
+ oarepo_runtime-1.5.106.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
149
+ oarepo_runtime-1.5.106.dist-info/entry_points.txt,sha256=k7O5LZUOGsVeSpB7ulU0txBUNp1CVQG7Q7TJIVTPbzU,491
150
+ oarepo_runtime-1.5.106.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
151
+ oarepo_runtime-1.5.106.dist-info/RECORD,,