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

Fixed cardinality for electronic address (BT-34) #48

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

Ayuto
Copy link
Contributor

@Ayuto Ayuto commented Nov 19, 2024

According to the documentation the cardinality of the electronic address (BT-34) is 0..1.

@raphaelm raphaelm merged commit 8ca6778 into pretix:master Jan 22, 2025
4 checks passed
@@ -129,7 +129,7 @@ class TradeParty(Element):
profile=BASIC,
_d="Anschrift des Handelspartners",
)
electronic_address: Container = MultiField(
electronic_address: Container = Field(
Copy link
Contributor

Choose a reason for hiding this comment

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

- electronic_address: Container = Field(
+ electronic_address: URIUniversalCommunication = Field(

@Ayuto the type hint also needs to be adjusted, since Field is not a Container.

barredterra added a commit to barredterra/python-drafthorse that referenced this pull request Jan 24, 2025
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.

3 participants