You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if the returned dictionary from validation were the same type as the original.
For example, if I validate an OrderedDict of (x,y) pairs, the order may be important and converting to a traditional dict doesn't maintain the order. I suppose it is also possible that one could request the validator be ordered as well and I'm not sure what that would mean.
Example:
importnumpyimportcollectionsfromvoluptuousimportSchema, Numberschema=Schema({Number(): Number()}) # x, y pairs (for interpolation or something)data=collections.OrderedDict(zip(numpy.linspace(5, 100, 11), numpy.random.random(11)))
out=schema(data)
assertisinstance(out, collections.OrderedDict),\
'Collection is no longer ordered, order:{}'.format(', '.join(str(k) forkinout.keys()))
This may be related to #40, but I don't quite understand what the issue was there.
The text was updated successfully, but these errors were encountered:
It would be nice if the returned dictionary from validation were the same type as the original.
For example, if I validate an OrderedDict of (x,y) pairs, the order may be important and converting to a traditional dict doesn't maintain the order. I suppose it is also possible that one could request the validator be ordered as well and I'm not sure what that would mean.
Example:
This may be related to #40, but I don't quite understand what the issue was there.
The text was updated successfully, but these errors were encountered: