oarepo-runtime 1.5.104__py3-none-any.whl → 1.5.105__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.
- oarepo_runtime/services/schema/rdm_ui.py +9 -8
- {oarepo_runtime-1.5.104.dist-info → oarepo_runtime-1.5.105.dist-info}/METADATA +1 -1
- {oarepo_runtime-1.5.104.dist-info → oarepo_runtime-1.5.105.dist-info}/RECORD +7 -7
- {oarepo_runtime-1.5.104.dist-info → oarepo_runtime-1.5.105.dist-info}/LICENSE +0 -0
- {oarepo_runtime-1.5.104.dist-info → oarepo_runtime-1.5.105.dist-info}/WHEEL +0 -0
- {oarepo_runtime-1.5.104.dist-info → oarepo_runtime-1.5.105.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-1.5.104.dist-info → oarepo_runtime-1.5.105.dist-info}/top_level.txt +0 -0
@@ -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 =
|
75
|
+
funder = ma.fields.Nested(lambda: RDMFunderVocabularyUISchema())
|
75
76
|
|
76
|
-
award =
|
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(
|
112
|
+
affiliations = ma.fields.List(ma.fields.Nested(lambda: RDMAffiliationVocabularyUISchema()))
|
112
113
|
|
113
|
-
person_or_org =
|
114
|
+
person_or_org = ma.fields.Nested(RDMPersonOrOrganizationUISchema())
|
@@ -127,7 +127,7 @@ oarepo_runtime/services/schema/marshmallow_to_json_schema.py,sha256=VYLnVWHOoaxW
|
|
127
127
|
oarepo_runtime/services/schema/oneofschema.py,sha256=GnWH4Or_G5M0NgSmCoqMI6PBrJg5AC9RHrcB5QDKRq0,6661
|
128
128
|
oarepo_runtime/services/schema/polymorphic.py,sha256=bAbUoTIeDBiJPYPhpLEKKZekEdkHlpqkmNxk1hN3PDw,564
|
129
129
|
oarepo_runtime/services/schema/rdm.py,sha256=ckcv_imYCG56_qwxVDZCt04D0tvI8I--NLHQU6iTwVc,1242
|
130
|
-
oarepo_runtime/services/schema/rdm_ui.py,sha256=
|
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.
|
147
|
-
oarepo_runtime-1.5.
|
148
|
-
oarepo_runtime-1.5.
|
149
|
-
oarepo_runtime-1.5.
|
150
|
-
oarepo_runtime-1.5.
|
151
|
-
oarepo_runtime-1.5.
|
146
|
+
oarepo_runtime-1.5.105.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
147
|
+
oarepo_runtime-1.5.105.dist-info/METADATA,sha256=81-KfaOYNSYy_lY27QN7I2OahhNmt9osw3WPKfv-s3o,4721
|
148
|
+
oarepo_runtime-1.5.105.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
149
|
+
oarepo_runtime-1.5.105.dist-info/entry_points.txt,sha256=k7O5LZUOGsVeSpB7ulU0txBUNp1CVQG7Q7TJIVTPbzU,491
|
150
|
+
oarepo_runtime-1.5.105.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
|
151
|
+
oarepo_runtime-1.5.105.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|