commonground-api-common 2.4.1__py3-none-any.whl → 2.5.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: commonground-api-common
3
- Version: 2.4.1
3
+ Version: 2.5.0
4
4
  Summary: Commonground API tooling
5
5
  Home-page: https://github.com/maykinmedia/commonground-api-common
6
6
  Author: Maykin Media, VNG-Realisatie
@@ -61,7 +61,7 @@ Requires-Dist: drf-extra-fields; extra == "tests"
61
61
  Provides-Extra: testutils
62
62
  Requires-Dist: zgw-consumers-oas; extra == "testutils"
63
63
  Provides-Extra: setup-configuration
64
- Requires-Dist: django-setup-configuration>=0.4.0; extra == "setup-configuration"
64
+ Requires-Dist: django-setup-configuration>=0.7.0; extra == "setup-configuration"
65
65
  Provides-Extra: pep8
66
66
  Requires-Dist: flake8; extra == "pep8"
67
67
  Provides-Extra: coverage
@@ -1,5 +1,5 @@
1
- commonground_api_common-2.4.1.data/scripts/generate_schema,sha256=OpKgzlFc_uzA3TVW_vHSYXAD_feLaCdTEnkWjIcxVzA,280
2
- vng_api_common/__init__.py,sha256=LgDSW5laOqA_7i2VW0cZ9QumZREigUxs3ZCBzJ1EG0o,22
1
+ commonground_api_common-2.5.0.data/scripts/generate_schema,sha256=OpKgzlFc_uzA3TVW_vHSYXAD_feLaCdTEnkWjIcxVzA,280
2
+ vng_api_common/__init__.py,sha256=fMbNgIJqxiZEaSBLadLBt4rZpCHqarzb4Okt-aWsp2E,22
3
3
  vng_api_common/admin.py,sha256=iFtUPGf-ha0I-bXgq8QIFrP23Kzk_H3FlgAjt0U-ip0,259
4
4
  vng_api_common/apps.py,sha256=QQiJXRmjX9Q91oh0P9fvVnHe3NSYd1cEcUUBw0HLBCA,3690
5
5
  vng_api_common/checks.py,sha256=tOyfV7MMLGh4anrd_W30LvJCxiyQ4sFs1mGd9mtrEc0,1175
@@ -28,12 +28,12 @@ vng_api_common/routers.py,sha256=hEnhBulkgMM-7W_lYaykKTgTBj3-avl7DGsR9P7BbTU,189
28
28
  vng_api_common/schema.py,sha256=axs2Q8IXwpHNd5WscQg5xOErL6bWhP8WFItTt4xCFO4,16305
29
29
  vng_api_common/scopes.py,sha256=PGs6CkXorAAdWXGFY1bSy-jmsPn122Njen9aFFOpFIQ,2351
30
30
  vng_api_common/search.py,sha256=yehS6boCOk1JXLCqAMU-B62hWtbTBSf_WKIVGPgp0Mg,1045
31
- vng_api_common/serializers.py,sha256=7_7IotlRfVb0woe6Wy79l_el3sPzrSY8-bfiYLbEUqs,10162
31
+ vng_api_common/serializers.py,sha256=NdrZJqP7p54lRKoKG4mEDS9MqaMcPESIr4dB1tnLaqI,10163
32
32
  vng_api_common/urls.py,sha256=9IWHYLlEIIHNaZ_Zq02qNQ2HJpETb7o-89r7yBM_tQs,270
33
33
  vng_api_common/utils.py,sha256=zrtpssOA-NcJHhAlxioBiXeY3G2R_uf0l8oWkDD_EiE,8511
34
34
  vng_api_common/validators.py,sha256=ejaFZvFXFaBlqxjA2_07NSHKHlG5pejrfC_GHjwCj6E,12852
35
35
  vng_api_common/version.py,sha256=yJV9_yTM7Qnzg0zGNkJQkN9Uai3I_ZUkcyseJRPRk5I,129
36
- vng_api_common/views.py,sha256=VnvlpDmzBeSkDB9a-pBUkqBncKO7TT-6bY5zbYP4QOk,7607
36
+ vng_api_common/views.py,sha256=pxpI2dl22I9auTYvRJ-Rx-_NHAKgo1F2QwQJF6WIjrE,7603
37
37
  vng_api_common/viewsets.py,sha256=z5pzvSymFiiuCjP_-uuW-3OJKZY_psPAt8fWeWySU0c,2278
38
38
  vng_api_common/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
39
  vng_api_common/api/permissions.py,sha256=okbwiscxlAtbQWTCRDLL2reOxgj0rRDZeDcrtXAYq00,739
@@ -108,7 +108,7 @@ vng_api_common/conf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
108
108
  vng_api_common/conf/api.py,sha256=Lx3Kk7S7mKxeaUr0dm6jbKrEh4WI2gye4i7QxN2x69E,3150
109
109
  vng_api_common/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
110
110
  vng_api_common/contrib/setup_configuration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
111
- vng_api_common/contrib/setup_configuration/models.py,sha256=ztev7KDGW0ESLl6jSuLx0tlNV58IOL3ibYEfVmjfv2Y,920
111
+ vng_api_common/contrib/setup_configuration/models.py,sha256=oqw0cOrbromC9CS3nWzfpDgOLg_xXyHoAi7jgw0f7Yk,1195
112
112
  vng_api_common/contrib/setup_configuration/steps.py,sha256=3jYRdHFlPq5zR-T-SPYTDp_Aipy0JK1HaJFrSgH4Vd0,1680
113
113
  vng_api_common/db/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
114
114
  vng_api_common/db/operations.py,sha256=3vj9zD4EntMSmYsNGN1pRDjAcVM68MESDdoAk9wl0U0,3333
@@ -182,7 +182,7 @@ vng_api_common/tests/auth.py,sha256=IKDWTEFv4Bign4F70-ibsFcnJqRxEJaXvqaPQJWa1xY,
182
182
  vng_api_common/tests/caching.py,sha256=zfIw5cRRvO9cekHZZKfRqZc8cx5IfJUYNmcH6cuIMg4,624
183
183
  vng_api_common/tests/schema.py,sha256=WDvifDQQiKqIpQijpeQ7rYkFroJmuPuHe7zNhl1Bigk,2293
184
184
  vng_api_common/tests/urls.py,sha256=PFrYzQbBC0TFPMEn3uPhcBG0IQs9JsEPqckicJT1UA4,2159
185
- commonground_api_common-2.4.1.dist-info/METADATA,sha256=4ycNVljxoK6rd_ozoYpx0f_l07i4JnZsiUihMscJwK0,6988
186
- commonground_api_common-2.4.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
187
- commonground_api_common-2.4.1.dist-info/top_level.txt,sha256=vPismc83zPzWXTmlNCCwfDlFV9iygJYxNJW5iDjKTgw,15
188
- commonground_api_common-2.4.1.dist-info/RECORD,,
185
+ commonground_api_common-2.5.0.dist-info/METADATA,sha256=h6PrcdoJEkOrGklI9qIKWV6YsNIpPilsXP2fG1m-P0Q,6988
186
+ commonground_api_common-2.5.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
187
+ commonground_api_common-2.5.0.dist-info/top_level.txt,sha256=vPismc83zPzWXTmlNCCwfDlFV9iygJYxNJW5iDjKTgw,15
188
+ commonground_api_common-2.5.0.dist-info/RECORD,,
@@ -1 +1 @@
1
- __version__ = "2.4.1"
1
+ __version__ = "2.5.0"
@@ -13,10 +13,14 @@ class SingleJWTSecretConfigurationModel(ConfigurationModel):
13
13
  "secret",
14
14
  ]
15
15
  }
16
+ extra_kwargs = {
17
+ "identifier": {"examples": ["application-name"]},
18
+ "secret": {"examples": ["modify-this"]},
19
+ }
16
20
 
17
21
 
18
22
  class JWTSecretsConfigurationModel(ConfigurationModel):
19
- items: list[SingleJWTSecretConfigurationModel] = Field(default_factory=list)
23
+ items: list[SingleJWTSecretConfigurationModel] = Field()
20
24
 
21
25
 
22
26
  class SingleApplicatieConfigurationModel(ConfigurationModel):
@@ -26,7 +30,11 @@ class SingleApplicatieConfigurationModel(ConfigurationModel):
26
30
  django_model_refs = {
27
31
  Applicatie: ["uuid", "client_ids", "label", "heeft_alle_autorisaties"]
28
32
  }
33
+ extra_kwargs = {
34
+ "client_ids": {"examples": [["open-notificaties-prod"]]},
35
+ "label": {"examples": ["Open Notificaties (productie)"]},
36
+ }
29
37
 
30
38
 
31
39
  class ApplicatieConfigurationModel(ConfigurationModel):
32
- items: list[SingleApplicatieConfigurationModel] = Field(default_factory=list)
40
+ items: list[SingleApplicatieConfigurationModel]
@@ -91,7 +91,7 @@ class ValidatieFoutSerializer(FoutSerializer):
91
91
 
92
92
 
93
93
  def add_choice_values_help_text(
94
- choices: Union[models.Choices, List[Tuple[str, str]]]
94
+ choices: Union[models.Choices, List[Tuple[str, str]]],
95
95
  ) -> str:
96
96
  is_dj_choices = inspect.isclass(choices) and issubclass(choices, models.Choices)
97
97
 
vng_api_common/views.py CHANGED
@@ -184,12 +184,12 @@ def _test_nrc_config(check_autorisaties_subscription=True) -> list:
184
184
  nrc_client: Optional[Client] = NotificationsConfig.get_client()
185
185
 
186
186
  if not nrc_client:
187
- return [((_("NRC"), _("Missing"), False))]
187
+ return [(_("NRC"), _("Missing"), False)]
188
188
 
189
189
  has_nrc_auth = nrc_client.auth is not None if nrc_client else False
190
190
 
191
191
  if not nrc_config.notifications_api_service:
192
- checks = [((_("NRC"), _("Missing"), False))]
192
+ checks = [(_("NRC"), _("Missing"), False)]
193
193
  return checks
194
194
 
195
195
  checks = [