Can PriceSchedule validation allow value 0? #3413
-
Currently there are some validation rules for PriceSchedule, especially: which do not allow value 0 as a PriceSchedule.value. For example PriceSchedulePositiveCashPrice:
For Quantity type there is a validation rule NonNegativeQuantityNonNegativeQuantityAmount which allows 0 as value. Can such validation rules can be relaxed and allow 0 as a value? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hi @adamturski Have you been able to resolve this question? Please let me know if you need to get in touch with the CDM maintainers. |
Beta Was this translation helpful? Give feedback.
-
@eteridvalishvili I resolved that by overriding the PriceSchedulePositiveCashPrice with my own implementation which allows 0. The ticket here is more a question if such relaxed validation can be provided in next releases. |
Beta Was this translation helpful? Give feedback.
-
Hi @finos/cdm-maintainers Are you able to help resolve this question? |
Beta Was this translation helpful? Give feedback.
-
Hi @adamturski I hope this message finds you well. I'm following up on your question and wanted to check if it's okay to close now and if you've received your answer. If haven’t and if you'd like to keep it open please let me know. If you're interested in joining the Contribution Review Working Group (CRWG) meetings, we have sessions scheduled for tomorrow, February 6th at 10 am EST/3 pm GMT, and another on February 20th at the same time. These meetings provide an opportunity to discuss your questions directly with the maintainers. Please let me know your preferences or if you have any further questions or concerns. Looking forward to hearing from you! |
Beta Was this translation helpful? Give feedback.
-
@eteridvalishvili Let's close the ticket. Like I wrote before, I overrode the rule with my custom logic which is maybe normal as one can customize the CDM rules if necessary. |
Beta Was this translation helpful? Give feedback.
-
Sounds great. Thanks for confirming! |
Beta Was this translation helpful? Give feedback.
@eteridvalishvili Let's close the ticket. Like I wrote before, I overrode the rule with my custom logic which is maybe normal as one can customize the CDM rules if necessary.