Skip to content

Conversation

@FlavPMU
Copy link
Contributor

@FlavPMU FlavPMU commented Jan 28, 2026

Add support in order to read Mdoc issued by "France-Identite" Wallet : https://playground.france-identite.gouv.fr/doc/marketplace/wallets/fin/

- Add optional 'errors' parameter to MobileDocument.__init__()
- Include 'errors' field in dump() output when present
- Add comprehensive test suite (test_09_errors_field.py)
- Fixes TypeError when parsing Device Response with status != 0
- ISO 18013-5 compliance for error handling
- All tests pass (36/36)

See docs/FIX_ERRORS_FIELD.md for detailed documentation
When elementValue is a list (e.g., nationality: ['FR']), elements can be
simple values (strings, numbers) instead of dicts. Added check to handle
both cases instead of assuming all elements have .items() method.

Fixes: 'str' object has no attribute 'items' error
@FlavPMU FlavPMU closed this Jan 30, 2026
@FlavPMU FlavPMU deleted the fix/support-errors-field branch January 30, 2026 10:09
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.

1 participant