oasis-open / tosca-community-contributions

OASIS TC Open Repository: Manages TOSCA profiles, tests, and templates that are maintained by the TOSCA community. They are intended to be used as examples to help developers get started with TOSCA and to test compliance of TOSCA implementations with the standard.
https://github.com/oasis-open/tosca-community-contributions
Apache License 2.0
39 stars 25 forks source link

Support more complex constraint logic, inspired by OpenAPI #80

Closed aszs closed 1 year ago

philippemerle commented 2 years ago

Could you illustrate what complex constraint logic could be expressed with OpenAPI and can not be expressed with TOSCA?

lauwers commented 2 years ago

TOSCA constraints are always implicitly "and"-ed. We should support other logic operations as well.

lauwers commented 1 year ago

This issue has been addressed by turning constraint clauses into Boolean expressions as documented in https://docs.oasis-open.org/tosca/TOSCA/v2.0/csd05/TOSCA-v2.0-csd05.html#_Toc125468755