CRISalid-esr / crisalid-ikg

CRISalid institutional knowledge graph
Other
0 stars 0 forks source link

Rework publication identifier validation #99

Open jdp1ps opened 5 days ago

jdp1ps commented 5 days ago

Don't reject the whole SourceRecord for an unknown identifier type

 1 validation error for SourceRecord
identifiers.2.type
  Input should be 'arxiv', 'doi', 'hal', 'ineris', 'ird', 'nnt', 'openalex', 'pii', 'pmid', 'pmcid', 'pubmed', 'pubmedcentral', 'ppn', 'prodinra', 'sciencespo', 'uri' or 'wos' [type=enum, input_value='swhid', input_type=str]
    For further information visit https://errors.pydantic.dev/2.7/v/enum