zenstack 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/res/stdlib.zmodel CHANGED
@@ -87,7 +87,7 @@ function now(): DateTime {
87
87
  /**
88
88
  * Generates a globally unique identifier based on the UUID specs.
89
89
  */
90
- function uuid(): String {
90
+ function uuid(version: Int?): String {
91
91
  } @@@expressionContext([DefaultValue])
92
92
 
93
93
  /**
@@ -633,7 +633,7 @@ attribute @lte(_ value: Int, _ message: String?) @@@targetField([IntField, Float
633
633
  /**
634
634
  * Validates the entity with a complex condition.
635
635
  */
636
- attribute @@validate(_ value: Boolean, _ message: String?) @@@validation
636
+ attribute @@validate(_ value: Boolean, _ message: String?, _ path: String[]?) @@@validation
637
637
 
638
638
  /**
639
639
  * Validates length of a string field.