Kyunghwan Choi
08/12/2024, 10:44 AMsome_key: record['some-key']
some-key: __NULL__
This works for string value types, or integer when I use int(record['some-key'])
but does not work for array types. Is there an example on how to do this with array types?
Second issue. When I use int(record['some-key'])
if the value didn't exist for that field (i.e. null
) it fails with a message TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
as it probably should. But, I tried to write something where it's still null, if it's null and int parsing if it's not null, but have been unsuccessful. Does anyone have an expression that can be used?
Thank you.visch
08/12/2024, 12:41 PMKyunghwan Choi
08/12/2024, 4:08 PMjsonschema.exceptions.ValidationError: ['EMAIL'] is not of type 'string', 'null'
Edgar RamÃrez (Arch.dev)
08/12/2024, 8:37 PMKyunghwan Choi
08/12/2024, 9:41 PM