Bug in PydanticBaseModel for ISO20 Messages
TGruett opened this issue · 1 comments
TGruett commented
Hi,
i figured out two problems with the pydantic model for ISO 20 while testing the schedule mode.
- the parking fee has the wrong alias
- the AbsolutePriceSchedule misses the id attribute [see 8.3.5.3.49]
While the fix of the first problem is straight forward, the id attribute in the AbsolutePriceSchedule is a bit more complex. I'm not sure how to properly model elements of type xs:ID, especially its uniqueness. Perhaps someone else knows how to deal with this?
Thank You.
shalinnijel2 commented
Thank you for reporting this @TGruett :). I have opened a PR for this and will include this in the next release.
Kind regards,
Shalin.