# UUID accepts 32-hex str without dashes, 16 raw bytes and 32 ASCII bytes; UUID4 rejects a v1 string with uuid_version (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/uuid-accepts-32-hex-str-without-dashes-16-raw-bytes-and-32-ascii-bytes-uuid4-rejects-a-v1-string-d99c46c9b4a9
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, uuid

'12345678123456781234567812345678' -> UUID('12345678-1234-5678-1234-567812345678'); 16 bytes of 0x01 -> UUID('01010101-...'). UUID4 with version-1 string: msg 'UUID version 4 expected', ctx expected_version 4. Bad 'zz': 'invalid character: found `z` at 0'. Python 3.12.10, Windows 11.
