lexjansen / dataset-json-sas

Dataset-JSON SAS Implementation
MIT License
14 stars 6 forks source link

The 06_validate_datasetjson.sas program (potentially underlying code) appears to truncate the message to 250 characters #20

Closed mhungria closed 10 months ago

mhungria commented 10 months ago

he 06_validate_datasetjson.sas program (or underlying code) appears to truncate the message to 250 characters:

'1' is not of type 'number' Failed validating 'type' in schema['properties']['clinicalData']['properties']['itemGroupData']['additionalProperties']['properties']['itemData']['items']['items'][0]: {'description': 'The first item in the data array need

lexjansen commented 10 months ago

This might be a limitation of SAS PROC FCMP. When you run the code in Python (see scripts/json_validate.py) it will dump the error message and the complete Dataset-JSON file. I will look into this. Also, when there are multiple issues, it would be nice to see them all.

mhungria commented 10 months ago

Yes, I was going to report that separately as it appears it is an independent issue of just reporting the first issue it encounters on each file.

lexjansen commented 10 months ago

This is fixed. PROC FCMP can only return 255 characters on a line. Instead of dumping the whole exception heap, you will get in the results dataset: (as an example):

I will open a seperate enhancement request to get all errors.

mhungria commented 10 months ago

Tested the fix. Looks ok now.

Looking forward to test the enhancement #22 when implemented.

lexjansen commented 10 months ago

Thank you for testing! 322 will take longer to implement. I need to think of a good design.