spraakbanken / metadata-api

REST-API that serves meta data for SB's corpora and lexicons
MIT License
1 stars 1 forks source link

Corpus "somali-suugaan2" missing description properties #11

Closed arildm closed 1 year ago

arildm commented 1 year ago

There are many resources with an empty string as description (e.g. gdc, sou, somali-suugaan) but the resource somali-suugaan2 is missing it completely: metadata/resource=somali-suugaan2. I don't think there's any reason to differentiate between those cases, so the API would be easier to use if we handle those cases the same when building the output. (I noticed this because there were warnings in the sbwebb-cms log.)

anne17 commented 1 year ago

Implemented a quick fix for this in 7aa699b which should ensure empty strings for descriptions and names. Also created #12 which would be a better and more general solution.