Replace @assert.enum with @assert.range
@assert.enum has been deprecated since April 2020: https://cap.cloud.sap/docs/releases/apr20#value-range-annotations-for-odata @assert.range is the correct annotation to use: https://cap.cloud.sap/docs/guides/generic#assertrange-check-constraints
This commit is contained in:
committed by
Christian Georgi
parent
a7e0cf61a3
commit
049345a39c
@@ -17,7 +17,7 @@ service ReviewsService {
|
|||||||
annotate Reviews with {
|
annotate Reviews with {
|
||||||
subject @mandatory;
|
subject @mandatory;
|
||||||
title @mandatory;
|
title @mandatory;
|
||||||
rating @assert.enum;
|
rating @assert.range;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user