nsj-rest-lib2 0.0.34__tar.gz → 0.0.35__tar.gz
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.
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/PKG-INFO +1 -1
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/dto/escopo_dto.py +20 -1
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2.egg-info/PKG-INFO +1 -1
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/setup.cfg +1 -1
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/README.md +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/__init__.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/__init__.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/compiler.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/compiler_structures.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/dto_compiler.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/__init__.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/ai_entity_edl.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/api_model.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/column_meta_model.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/entity_model.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/entity_model_base.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/entity_model_root.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/index_model.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/primitives.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/property_meta_model.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/repository_model.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/trait_property_meta_model.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/entity_compiler.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/function_get_delete_compiler.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/function_insert_update_compiler.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/function_model.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/migration_compiler.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/migration_compiler_alter_table.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/migration_compiler_create_table.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/migration_compiler_util.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/model.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/property_compiler.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/util/__init__.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/util/relation_ref.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/util/str_util.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/util/type_naming_util.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/util/type_util.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/controller/__init__.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/controller/dynamic_controller.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/dto/__init__.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/entity/__init__.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/entity/escopo_entity.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/exception.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/redis_config.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/service/__init__.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/service/entity_config_writer.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/service/entity_loader.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/settings.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2.egg-info/SOURCES.txt +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2.egg-info/dependency_links.txt +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2.egg-info/requires.txt +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2.egg-info/top_level.txt +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/pyproject.toml +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/tests/test_function_handler_compilation.py +0 -0
- {nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/tests/test_migration_generation.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nsj_rest_lib2
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.35
|
|
4
4
|
Summary: Biblioteca para permitir a distribuição de rotas dinâmicas numa API, configuradas por meio de EDLs declarativos (em formato JSON).
|
|
5
5
|
Home-page: https://github.com/Nasajon/nsj_rest_lib2
|
|
6
6
|
Author: Nasajon Sistemas
|
|
@@ -6,6 +6,25 @@ from nsj_rest_lib.descriptor.dto_field_validators import DTOFieldValidators
|
|
|
6
6
|
from nsj_rest_lib.dto.dto_base import DTOBase
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
def _validate_service_account(dto_field: DTOField, value):
|
|
10
|
+
if value is None:
|
|
11
|
+
return None
|
|
12
|
+
|
|
13
|
+
if not isinstance(value, str):
|
|
14
|
+
raise ValueError(
|
|
15
|
+
f"{dto_field.storage_name} deve ser do tipo string. Valor recebido: {value}."
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
value = value.strip()
|
|
19
|
+
|
|
20
|
+
if not value.startswith("serv_acc_"):
|
|
21
|
+
raise ValueError(
|
|
22
|
+
f"{dto_field.storage_name} deve comecar com \"serv_acc_\". Valor recebido: {value}."
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
return DTOFieldValidators().validate_email(dto_field, value)
|
|
26
|
+
|
|
27
|
+
|
|
9
28
|
@DTO()
|
|
10
29
|
class EscopoDTO(DTOBase):
|
|
11
30
|
|
|
@@ -35,5 +54,5 @@ class EscopoDTO(DTOBase):
|
|
|
35
54
|
strip=True,
|
|
36
55
|
min=5,
|
|
37
56
|
max=320,
|
|
38
|
-
validator=
|
|
57
|
+
validator=_validate_service_account,
|
|
39
58
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nsj_rest_lib2
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.35
|
|
4
4
|
Summary: Biblioteca para permitir a distribuição de rotas dinâmicas numa API, configuradas por meio de EDLs declarativos (em formato JSON).
|
|
5
5
|
Home-page: https://github.com/Nasajon/nsj_rest_lib2
|
|
6
6
|
Author: Nasajon Sistemas
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = nsj_rest_lib2
|
|
3
|
-
version = 0.0.
|
|
3
|
+
version = 0.0.35
|
|
4
4
|
author = Nasajon Sistemas
|
|
5
5
|
author_email = contact.dev@nasajon.com.br
|
|
6
6
|
description = Biblioteca para permitir a distribuição de rotas dinâmicas numa API, configuradas por meio de EDLs declarativos (em formato JSON).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/ai_entity_edl.py
RENAMED
|
File without changes
|
|
File without changes
|
{nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/column_meta_model.py
RENAMED
|
File without changes
|
{nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/entity_model.py
RENAMED
|
File without changes
|
{nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/entity_model_base.py
RENAMED
|
File without changes
|
{nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/entity_model_root.py
RENAMED
|
File without changes
|
{nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/index_model.py
RENAMED
|
File without changes
|
{nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/primitives.py
RENAMED
|
File without changes
|
|
File without changes
|
{nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/edl_model/repository_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/function_get_delete_compiler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/migration_compiler_util.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/compiler/util/type_naming_util.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nsj_rest_lib2-0.0.34 → nsj_rest_lib2-0.0.35}/nsj_rest_lib2/controller/dynamic_controller.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|