-
-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Labels
Description
When I default to numpy.nan, i get a NameError: name 'nan' is not defined.
Here is the full code
import fastjsonschema
import numpy as np
nnnan = np.nan
print(nnnan)
validate = fastjsonschema.compile({
'type': 'object',
'properties': {
'a': {'type': 'number', 'default': np.nan},
},
})
data = validate({})
assert data == {'a': np.nan}