collectionspace / cspace-config-untangler

Generate CollectionSpace data overviews from profile/tenant configs
MIT License
0 stars 4 forks source link

Handle explicitly set string data types #49

Closed kspurgin closed 4 years ago

kspurgin commented 4 years ago

UCB BAMPFA config has:

"value": {
    "[config]": {
        "dataType": "DATA_TYPE_STRING",
        "messages": {
            "fullName": {
                "id": "field.ext.dimension.value.fullName",
                "defaultMessage": "Measurement value"
            },
            "name": {
                "id": "field.ext.dimension.value.name",
                "defaultMessage": "Value"
            }
        },
        "view": {}
    }
},

Previous assumption was that string-ness was inferred from field definitions with no dataType (that did not test to be structured date fields). Add support for handling DATA_TYPE_STRING as a string.