File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
plugin-js-lambda-microlib/src
plugin-registry-base/assets/code/microservice/type-mixin Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- 16.10 .0
1+ 24.12 .0
Original file line number Diff line number Diff line change @@ -118,10 +118,10 @@ export default class SchemaParser {
118118 ( validators && 0 < validators . length ) && ( acc . validators [ k ] = [ ...acc . validators [ k ] , ...validators ] ) ;
119119 ( authorizers && 0 < authorizers . length ) && ( acc . authorizers [ k ] = [ ...( acc . authorizers [ k ] || [ ] ) , ...authorizers ] ) ;
120120 if ( unique ) {
121+ acc . fields [ k ] . unique = true ;
121122 if ( undefined === value && undefined === updateValue ) {
122123 acc . validators [ k ] . push ( { type : '@unique' , config : { type : schema . name , index : k } } ) ;
123124 }
124- acc . fields [ k ] . unique = true ;
125125 }
126126 ( undefined !== value ) && ( acc . values [ k ] = value ) ;
127127 ( undefined !== updateValue ) && ( acc . updateValues [ k ] = updateValue ) ;
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ inputs:
66 indexed :
77 type : boolean
88 default : false
9- prefix :
10- type : string
11- default : ' '
129 unique :
1310 type : boolean
1411 default : false
12+ prefix :
13+ type : string
14+ default : ' '
1515
1616attributes :
1717 code :
You can’t perform that action at this time.
0 commit comments