Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with UUIDs not Matching #321

Open
curtiscook opened this issue May 25, 2022 · 1 comment
Open

Issue with UUIDs not Matching #321

curtiscook opened this issue May 25, 2022 · 1 comment

Comments

@curtiscook
Copy link

[x] Please checkout the F.A.Q page before creating a bug ticket to make sure it is not already addressed.

Describe the bug
UUID appears to be detecting a type change. Validation passes if I exclude UUID types from validation. I could also not figure out what the new type was and validation still failed when I tried to ignore UUID -> int and UUID -> None

{'type_changes': 
	{"root['uuid']": {
		'old_type': <class 'uuid.UUID'>, 
		'new_type': , 
		'old_value': UUID('a0173d6a-df46-4ad3-bd6d-781629c03d1b'), 
		'new_value': UUID('a0173d6a-df46-4ad3-bd6d-781629c03d1b')}, 
	"root['account_uuid']": {
		'old_type': , 
		'new_type': , 
		'old_value': UUID('8b918a6b-661f-4f9e-801f-571fbaa98830'), 
		'new_value': UUID('8b918a6b-661f-4f9e-801f-571fbaa98830')}}}

To Reproduce
I'm currently comparing 2 dictionaries with UUID fields. Validation passes if I exclude UUID's. Unfortunately I don't have a MRE available

Expected behavior
I would expect the UUID types to match

OS, DeepDiff version and Python version (please complete the following information):

  • OS: OSX
  • Versions
    deepdiff = "^5.8.1"
    Python 3.8.8
@seperman
Copy link
Owner

seperman commented Jun 1, 2022

Hi @curtiscook
Can you please provide a piece of code that I can just copy paste and it will reproduce this problem?

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

No branches or pull requests

2 participants