From 3902d33499e4216d91e455852276e72b4a456520 Mon Sep 17 00:00:00 2001 From: Warren Parad Date: Fri, 20 Sep 2024 14:55:32 +0200 Subject: [PATCH] Prevent extra properties in all models. --- CHANGELOG.md | 3 +++ authress/models/access_record.py | 1 + authress/models/access_record_account.py | 1 + authress/models/access_record_collection.py | 1 + authress/models/access_request.py | 1 + authress/models/access_request_collection.py | 1 + authress/models/access_request_response.py | 1 + authress/models/access_template.py | 1 + authress/models/account.py | 1 + authress/models/account_collection.py | 1 + authress/models/account_links.py | 1 + authress/models/application_delegation.py | 1 + authress/models/authentication_token_configuration.py | 1 + authress/models/claim_request.py | 1 + authress/models/client.py | 1 + authress/models/client_access_key.py | 1 + authress/models/client_collection.py | 1 + authress/models/client_options.py | 1 + authress/models/client_rate_limit.py | 1 + authress/models/collection_links.py | 1 + authress/models/connection.py | 1 + authress/models/connection_collection.py | 1 + authress/models/connection_conditions.py | 1 + authress/models/connection_data.py | 1 + authress/models/connection_default_connection_properties.py | 1 + authress/models/connection_linking_configuration.py | 1 + authress/models/connection_user_data_configuration.py | 1 + authress/models/extension.py | 1 + authress/models/extension_application.py | 1 + authress/models/extension_client.py | 1 + authress/models/extension_collection.py | 1 + authress/models/group.py | 1 + authress/models/group_collection.py | 1 + authress/models/identity.py | 1 + authress/models/identity_collection.py | 1 + authress/models/identity_request.py | 1 + authress/models/invite.py | 1 + authress/models/invite_statement.py | 1 + authress/models/link.py | 1 + authress/models/linked_group.py | 1 + authress/models/links.py | 1 + authress/models/o_auth_authorize_response.py | 1 + authress/models/o_auth_token_request.py | 1 + authress/models/o_auth_token_response.py | 1 + authress/models/pagination.py | 1 + authress/models/pagination_next.py | 1 + authress/models/permission_collection.py | 1 + authress/models/permission_collection_account.py | 1 + authress/models/permission_object.py | 1 + authress/models/permissioned_resource.py | 1 + authress/models/permissioned_resource_collection.py | 1 + authress/models/resource.py | 1 + authress/models/resource_permission.py | 1 + authress/models/resource_users_collection.py | 1 + authress/models/role.py | 1 + authress/models/role_collection.py | 1 + authress/models/statement.py | 1 + authress/models/tenant_collection.py | 1 + authress/models/tenant_connection.py | 1 + authress/models/tenant_data.py | 1 + authress/models/tenant_domain.py | 1 + authress/models/tenant_user.py | 1 + authress/models/token_request.py | 1 + authress/models/user.py | 1 + authress/models/user_connection_credentials.py | 1 + authress/models/user_identity.py | 1 + authress/models/user_identity_collection.py | 1 + authress/models/user_resources_collection.py | 1 + authress/models/user_role.py | 1 + authress/models/user_role_collection.py | 1 + authress/models/user_token.py | 1 + 71 files changed, 73 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e9ce35..3e603ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Change log This is the changelog for [Authress SDK](readme.md). +## 3.1 ## +* [Breaking] Throw validation error on setting a property that doesn't exist in any of the Authress DTO Models. + ## 3.0 ## * [Breaking] Added type checking everywhere - This means most models have breaking changes. * [Breaking] Converted properties to be consistent across all generators diff --git a/authress/models/access_record.py b/authress/models/access_record.py index 4402d2a..4d5ac3d 100644 --- a/authress/models/access_record.py +++ b/authress/models/access_record.py @@ -71,6 +71,7 @@ def status_validate_enum(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/access_record_account.py b/authress/models/access_record_account.py index bc05cce..9e0b719 100644 --- a/authress/models/access_record_account.py +++ b/authress/models/access_record_account.py @@ -34,6 +34,7 @@ class AccessRecordAccount(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/access_record_collection.py b/authress/models/access_record_collection.py index 15471ab..0aeb05e 100644 --- a/authress/models/access_record_collection.py +++ b/authress/models/access_record_collection.py @@ -39,6 +39,7 @@ class AccessRecordCollection(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/access_request.py b/authress/models/access_request.py index bff5ac5..0945e41 100644 --- a/authress/models/access_request.py +++ b/authress/models/access_request.py @@ -58,6 +58,7 @@ def status_validate_enum(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/access_request_collection.py b/authress/models/access_request_collection.py index e46d7af..54c907d 100644 --- a/authress/models/access_request_collection.py +++ b/authress/models/access_request_collection.py @@ -39,6 +39,7 @@ class AccessRequestCollection(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/access_request_response.py b/authress/models/access_request_response.py index c81e817..00b79a3 100644 --- a/authress/models/access_request_response.py +++ b/authress/models/access_request_response.py @@ -41,6 +41,7 @@ def status_validate_enum(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/access_template.py b/authress/models/access_template.py index 41d7ab0..d93f86d 100644 --- a/authress/models/access_template.py +++ b/authress/models/access_template.py @@ -37,6 +37,7 @@ class AccessTemplate(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/account.py b/authress/models/account.py index 388fa4e..2cefc32 100644 --- a/authress/models/account.py +++ b/authress/models/account.py @@ -39,6 +39,7 @@ class Account(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/account_collection.py b/authress/models/account_collection.py index 1805540..e2a6de3 100644 --- a/authress/models/account_collection.py +++ b/authress/models/account_collection.py @@ -35,6 +35,7 @@ class AccountCollection(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/account_links.py b/authress/models/account_links.py index 2b498ba..d3d59a6 100644 --- a/authress/models/account_links.py +++ b/authress/models/account_links.py @@ -35,6 +35,7 @@ class AccountLinks(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/application_delegation.py b/authress/models/application_delegation.py index 2455bb0..d103c06 100644 --- a/authress/models/application_delegation.py +++ b/authress/models/application_delegation.py @@ -34,6 +34,7 @@ class ApplicationDelegation(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/authentication_token_configuration.py b/authress/models/authentication_token_configuration.py index 66610f3..7ef1fba 100644 --- a/authress/models/authentication_token_configuration.py +++ b/authress/models/authentication_token_configuration.py @@ -57,6 +57,7 @@ def session_duration_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/claim_request.py b/authress/models/claim_request.py index 594d3c2..1597144 100644 --- a/authress/models/claim_request.py +++ b/authress/models/claim_request.py @@ -35,6 +35,7 @@ class ClaimRequest(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/client.py b/authress/models/client.py index d2f3691..e3130e1 100644 --- a/authress/models/client.py +++ b/authress/models/client.py @@ -43,6 +43,7 @@ class Client(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/client_access_key.py b/authress/models/client_access_key.py index be64f35..193cbc7 100644 --- a/authress/models/client_access_key.py +++ b/authress/models/client_access_key.py @@ -48,6 +48,7 @@ def public_key_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/client_collection.py b/authress/models/client_collection.py index 2d5b9c5..41c4853 100644 --- a/authress/models/client_collection.py +++ b/authress/models/client_collection.py @@ -39,6 +39,7 @@ class ClientCollection(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/client_options.py b/authress/models/client_options.py index 7d3a996..d02cd26 100644 --- a/authress/models/client_options.py +++ b/authress/models/client_options.py @@ -35,6 +35,7 @@ class ClientOptions(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/client_rate_limit.py b/authress/models/client_rate_limit.py index 7a02028..9379f28 100644 --- a/authress/models/client_rate_limit.py +++ b/authress/models/client_rate_limit.py @@ -52,6 +52,7 @@ def quota_validate_enum(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/collection_links.py b/authress/models/collection_links.py index a3c3413..7e6959d 100644 --- a/authress/models/collection_links.py +++ b/authress/models/collection_links.py @@ -36,6 +36,7 @@ class CollectionLinks(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/connection.py b/authress/models/connection.py index 22b95b3..f3ae0e5 100644 --- a/authress/models/connection.py +++ b/authress/models/connection.py @@ -76,6 +76,7 @@ def connection_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/connection_collection.py b/authress/models/connection_collection.py index 8e67a3d..708a630 100644 --- a/authress/models/connection_collection.py +++ b/authress/models/connection_collection.py @@ -37,6 +37,7 @@ class ConnectionCollection(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/connection_conditions.py b/authress/models/connection_conditions.py index 876cbec..3020bac 100644 --- a/authress/models/connection_conditions.py +++ b/authress/models/connection_conditions.py @@ -34,6 +34,7 @@ class ConnectionConditions(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/connection_data.py b/authress/models/connection_data.py index 5d6de95..ff90a0f 100644 --- a/authress/models/connection_data.py +++ b/authress/models/connection_data.py @@ -60,6 +60,7 @@ def supported_content_type_validate_enum(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/connection_default_connection_properties.py b/authress/models/connection_default_connection_properties.py index 4f762c7..982a35a 100644 --- a/authress/models/connection_default_connection_properties.py +++ b/authress/models/connection_default_connection_properties.py @@ -35,6 +35,7 @@ class ConnectionDefaultConnectionProperties(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/connection_linking_configuration.py b/authress/models/connection_linking_configuration.py index 16c7970..728810a 100644 --- a/authress/models/connection_linking_configuration.py +++ b/authress/models/connection_linking_configuration.py @@ -44,6 +44,7 @@ def type_validate_enum(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/connection_user_data_configuration.py b/authress/models/connection_user_data_configuration.py index 42c9dc8..a6faa32 100644 --- a/authress/models/connection_user_data_configuration.py +++ b/authress/models/connection_user_data_configuration.py @@ -44,6 +44,7 @@ def location_validate_enum(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/extension.py b/authress/models/extension.py index 43c000f..f89c1da 100644 --- a/authress/models/extension.py +++ b/authress/models/extension.py @@ -41,6 +41,7 @@ class Extension(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/extension_application.py b/authress/models/extension_application.py index 3600b63..9941387 100644 --- a/authress/models/extension_application.py +++ b/authress/models/extension_application.py @@ -37,6 +37,7 @@ class ExtensionApplication(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/extension_client.py b/authress/models/extension_client.py index dbaf171..80e2521 100644 --- a/authress/models/extension_client.py +++ b/authress/models/extension_client.py @@ -38,6 +38,7 @@ class ExtensionClient(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/extension_collection.py b/authress/models/extension_collection.py index d04e4ea..f469eb4 100644 --- a/authress/models/extension_collection.py +++ b/authress/models/extension_collection.py @@ -37,6 +37,7 @@ class ExtensionCollection(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/group.py b/authress/models/group.py index 7e2c100..ce92be2 100644 --- a/authress/models/group.py +++ b/authress/models/group.py @@ -52,6 +52,7 @@ def group_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/group_collection.py b/authress/models/group_collection.py index b5ab53c..1bae7b0 100644 --- a/authress/models/group_collection.py +++ b/authress/models/group_collection.py @@ -39,6 +39,7 @@ class GroupCollection(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/identity.py b/authress/models/identity.py index b13c62b..7c780b7 100644 --- a/authress/models/identity.py +++ b/authress/models/identity.py @@ -36,6 +36,7 @@ class Identity(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/identity_collection.py b/authress/models/identity_collection.py index b39ca7c..d4ebb2f 100644 --- a/authress/models/identity_collection.py +++ b/authress/models/identity_collection.py @@ -35,6 +35,7 @@ class IdentityCollection(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/identity_request.py b/authress/models/identity_request.py index cfc19e5..e3cedab 100644 --- a/authress/models/identity_request.py +++ b/authress/models/identity_request.py @@ -37,6 +37,7 @@ class IdentityRequest(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/invite.py b/authress/models/invite.py index 07f85b3..5073981 100644 --- a/authress/models/invite.py +++ b/authress/models/invite.py @@ -49,6 +49,7 @@ def tenant_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/invite_statement.py b/authress/models/invite_statement.py index a41be70..f39545f 100644 --- a/authress/models/invite_statement.py +++ b/authress/models/invite_statement.py @@ -38,6 +38,7 @@ class InviteStatement(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/link.py b/authress/models/link.py index 54f0e53..a41f278 100644 --- a/authress/models/link.py +++ b/authress/models/link.py @@ -35,6 +35,7 @@ class Link(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/linked_group.py b/authress/models/linked_group.py index f446b7f..ef458e9 100644 --- a/authress/models/linked_group.py +++ b/authress/models/linked_group.py @@ -41,6 +41,7 @@ def group_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/links.py b/authress/models/links.py index d633f57..d6974a7 100644 --- a/authress/models/links.py +++ b/authress/models/links.py @@ -35,6 +35,7 @@ class Links(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/o_auth_authorize_response.py b/authress/models/o_auth_authorize_response.py index af41d11..69a1649 100644 --- a/authress/models/o_auth_authorize_response.py +++ b/authress/models/o_auth_authorize_response.py @@ -34,6 +34,7 @@ class OAuthAuthorizeResponse(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/o_auth_token_request.py b/authress/models/o_auth_token_request.py index bd86ac7..2084d62 100644 --- a/authress/models/o_auth_token_request.py +++ b/authress/models/o_auth_token_request.py @@ -60,6 +60,7 @@ def type_validate_enum(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/o_auth_token_response.py b/authress/models/o_auth_token_response.py index 89d54c3..871af23 100644 --- a/authress/models/o_auth_token_response.py +++ b/authress/models/o_auth_token_response.py @@ -34,6 +34,7 @@ class OAuthTokenResponse(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/pagination.py b/authress/models/pagination.py index f95c330..120c415 100644 --- a/authress/models/pagination.py +++ b/authress/models/pagination.py @@ -35,6 +35,7 @@ class Pagination(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/pagination_next.py b/authress/models/pagination_next.py index 0f0c82d..d6acb4b 100644 --- a/authress/models/pagination_next.py +++ b/authress/models/pagination_next.py @@ -34,6 +34,7 @@ class PaginationNext(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/permission_collection.py b/authress/models/permission_collection.py index b490418..23d2efd 100644 --- a/authress/models/permission_collection.py +++ b/authress/models/permission_collection.py @@ -45,6 +45,7 @@ def user_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/permission_collection_account.py b/authress/models/permission_collection_account.py index 60ca2cb..e96c63e 100644 --- a/authress/models/permission_collection_account.py +++ b/authress/models/permission_collection_account.py @@ -34,6 +34,7 @@ class PermissionCollectionAccount(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/permission_object.py b/authress/models/permission_object.py index 6372cea..a642a22 100644 --- a/authress/models/permission_object.py +++ b/authress/models/permission_object.py @@ -44,6 +44,7 @@ def action_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/permissioned_resource.py b/authress/models/permissioned_resource.py index d045fe3..870ab71 100644 --- a/authress/models/permissioned_resource.py +++ b/authress/models/permissioned_resource.py @@ -35,6 +35,7 @@ class PermissionedResource(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/permissioned_resource_collection.py b/authress/models/permissioned_resource_collection.py index b14c7cb..ecd597e 100644 --- a/authress/models/permissioned_resource_collection.py +++ b/authress/models/permissioned_resource_collection.py @@ -39,6 +39,7 @@ class PermissionedResourceCollection(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/resource.py b/authress/models/resource.py index 9a327a7..ce9c40e 100644 --- a/authress/models/resource.py +++ b/authress/models/resource.py @@ -41,6 +41,7 @@ def resource_uri_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/resource_permission.py b/authress/models/resource_permission.py index 0d24b63..8df969c 100644 --- a/authress/models/resource_permission.py +++ b/authress/models/resource_permission.py @@ -42,6 +42,7 @@ def action_validate_enum(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/resource_users_collection.py b/authress/models/resource_users_collection.py index 2c3074a..629640b 100644 --- a/authress/models/resource_users_collection.py +++ b/authress/models/resource_users_collection.py @@ -39,6 +39,7 @@ class ResourceUsersCollection(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/role.py b/authress/models/role.py index c9b052a..9f4394d 100644 --- a/authress/models/role.py +++ b/authress/models/role.py @@ -48,6 +48,7 @@ def role_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/role_collection.py b/authress/models/role_collection.py index b362b19..a11715c 100644 --- a/authress/models/role_collection.py +++ b/authress/models/role_collection.py @@ -39,6 +39,7 @@ class RoleCollection(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/statement.py b/authress/models/statement.py index 69b04c1..9a779f1 100644 --- a/authress/models/statement.py +++ b/authress/models/statement.py @@ -40,6 +40,7 @@ class Statement(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/tenant_collection.py b/authress/models/tenant_collection.py index 98cb76d..9f1451a 100644 --- a/authress/models/tenant_collection.py +++ b/authress/models/tenant_collection.py @@ -37,6 +37,7 @@ class TenantCollection(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/tenant_connection.py b/authress/models/tenant_connection.py index 0651be4..018ada2 100644 --- a/authress/models/tenant_connection.py +++ b/authress/models/tenant_connection.py @@ -44,6 +44,7 @@ def connection_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/tenant_data.py b/authress/models/tenant_data.py index 28655aa..be65b61 100644 --- a/authress/models/tenant_data.py +++ b/authress/models/tenant_data.py @@ -34,6 +34,7 @@ class TenantData(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/tenant_domain.py b/authress/models/tenant_domain.py index ba585ea..5d121c1 100644 --- a/authress/models/tenant_domain.py +++ b/authress/models/tenant_domain.py @@ -41,6 +41,7 @@ def domain_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/tenant_user.py b/authress/models/tenant_user.py index a2747fa..d69b5c0 100644 --- a/authress/models/tenant_user.py +++ b/authress/models/tenant_user.py @@ -44,6 +44,7 @@ def user_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/token_request.py b/authress/models/token_request.py index 1080946..e5a0a29 100644 --- a/authress/models/token_request.py +++ b/authress/models/token_request.py @@ -36,6 +36,7 @@ class TokenRequest(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/user.py b/authress/models/user.py index 73b5aea..07bb77f 100644 --- a/authress/models/user.py +++ b/authress/models/user.py @@ -41,6 +41,7 @@ def user_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/user_connection_credentials.py b/authress/models/user_connection_credentials.py index 1ca28ba..8afaebb 100644 --- a/authress/models/user_connection_credentials.py +++ b/authress/models/user_connection_credentials.py @@ -34,6 +34,7 @@ class UserConnectionCredentials(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/user_identity.py b/authress/models/user_identity.py index 8954d54..f2ed8ce 100644 --- a/authress/models/user_identity.py +++ b/authress/models/user_identity.py @@ -44,6 +44,7 @@ def user_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/user_identity_collection.py b/authress/models/user_identity_collection.py index eb71f31..84210a1 100644 --- a/authress/models/user_identity_collection.py +++ b/authress/models/user_identity_collection.py @@ -39,6 +39,7 @@ class UserIdentityCollection(BaseModel): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/user_resources_collection.py b/authress/models/user_resources_collection.py index fd41562..e2a3fc8 100644 --- a/authress/models/user_resources_collection.py +++ b/authress/models/user_resources_collection.py @@ -49,6 +49,7 @@ def user_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/user_role.py b/authress/models/user_role.py index ddcc5c7..8a92e44 100644 --- a/authress/models/user_role.py +++ b/authress/models/user_role.py @@ -41,6 +41,7 @@ def role_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/user_role_collection.py b/authress/models/user_role_collection.py index bf639b9..7da72d9 100644 --- a/authress/models/user_role_collection.py +++ b/authress/models/user_role_collection.py @@ -43,6 +43,7 @@ def user_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True diff --git a/authress/models/user_token.py b/authress/models/user_token.py index 85ca81d..eef5ed1 100644 --- a/authress/models/user_token.py +++ b/authress/models/user_token.py @@ -47,6 +47,7 @@ def user_id_validate_regular_expression(cls, value): class Config: """Pydantic configuration""" + extra = 'forbid' allow_population_by_field_name = True validate_assignment = True