Esempio n. 1
0
 def to_json(self):
     updated = Constraint.to_json(self)
     updated.update({
             'minVal' : self._min,
             'maxVal' : self._max
         })
     return updated
Esempio n. 2
0
 def to_json(self):
     updated = Constraint.to_json(self)
     updated.update({
             'regex' : self._regex,
             'flags' : self._flags
         })
     return updated
Esempio n. 3
0
 def to_json(self):
     updated = Constraint.to_json(self)
     updated.update({
             'values' : self._values,
         })
     return updated
Esempio n. 4
0
 def to_json(self):
     updated = Constraint.to_json(self)
     updated.update({
             'constraint' : self._constraint.to_json()
         })
     return updated
Esempio n. 5
0
 def to_json(self):
     updated = Constraint.to_json(self)
     updated.update({
             'constraints' : [constraint.to_json() for constraint in self._constraints]
         })
     return updated