Skip to content

Conversation

@nawaik
Copy link

@nawaik nawaik commented Nov 18, 2025

Currently the ContactsApi::get function gives us the following exception:

Unexpected ENUM value in in class RealtimeRegister\\Domain\\Enum\\ValidationCategoryEnum: Esnic. Possible values: (General, IisNu, IisSe, Nominet, SKNic)

This seems to be related to the depreciation of this enum in the previous tag. The enum is still used in src/Domain/Validation::fromArray.

@PJEilers
Copy link
Contributor

As this enum is deprected, it would be better to remove this lineValidationCategoryEnum::validate($json['category']); in fromArray in Validation.php

Copy link
Contributor

@PJEilers PJEilers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this enum is deprecated, it would be better to remove this line: ValidationCategoryEnum::validate($json['category']); in fromArray in Validation.php

@nawaik nawaik changed the title Add missing enum value to ValidationCategoryEnum Remove deprecated enum validation Nov 19, 2025
@nawaik
Copy link
Author

nawaik commented Nov 19, 2025

@PJEilers removed the ValidationCategoryEnum::validate($json['category']); as you suggested.

@PJEilers PJEilers merged commit 8f39df3 into realtimeregister:master Nov 19, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants