IACR / latex-submit

Web server to receive uploaded LaTeX and execute it in a docker container.
GNU Affero General Public License v3.0
11 stars 0 forks source link

Metadata does not allow all fields in affiliation #35

Closed kmccurley closed 1 year ago

kmccurley commented 1 year ago

Regarding @NigelSmart paper, I saw a parse error from the metadata parser: Error: Failure to extract metadata: 3 validation errors for Meta affiliations -> 0 -> department extra fields not permitted (type=value_error.extra) affiliations -> 0 -> state extra fields not permitted (type=value_error.extra) root Paper must contain affiliations (type=value_error)

This appears to be caused by not recognizing department in compilation.py. It's a pydantic feature/bug that it doesn't allow extra JSON fields when it parses the metadata. It should be covered in the metadata parse tests.

kmccurley commented 1 year ago

Fixed in https://github.com/IACR/latex-submit/commit/762f04ecb933f08781b19036dbe380eb073d3b7e