Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quarto complaining that bibliography field should be a string #9

Closed
bbolker opened this issue Sep 16, 2023 · 4 comments
Closed

quarto complaining that bibliography field should be a string #9

bbolker opened this issue Sep 16, 2023 · 4 comments

Comments

@bbolker
Copy link
Contributor

bbolker commented Sep 16, 2023

I'm sure I'm doing something silly here, but with Quarto 1.3.450, pandoc 3.1.8, quarto render books.qmd --to markdown gives:

ERROR: Validation of YAML front matter failed.
ERROR: In file books.qmd
(line 7, columns 4--24) Field "bibliography" has value main: main_books.bib, which must instead be a string
6: bibliography:
7:    main: main_books.bib
     ~~~~~~~~~~~~~~~~~~~~~
8: filters:
✖ The value main: main_books.bib is of type object.
ℹ The error happened in location bibliography.

ERROR: Render failed due to invalid YAML.

Should I be asking for help here or on Quarto forums?

Test file (I don't think you need the bib file to diagnose this ...?)

---
title: "Annotated bibliography"
bibliography:
   main: main_books.bib
filters:
   - multibib
---

## Primary references

::: {#refs-main}
:::
@Pakillo
Copy link

Pakillo commented Sep 17, 2023

I think this is the same issue: #1

A quick fix is to add validate-yaml: false to the document YAML. See brief discussion here

HTH

@bbolker
Copy link
Contributor Author

bbolker commented Sep 17, 2023

Thanks! Should have looked in closed as well as open issues. If I get to it maybe I'll submit a pull request to add this information to the README (as it seems it will trip up any Quarto users ... ??)

@Pakillo
Copy link

Pakillo commented Sep 17, 2023

Yes, probably a good idea (I hit the same wall a few months ago :)

@bbolker
Copy link
Contributor Author

bbolker commented Sep 22, 2023

opened a pull request

@bbolker bbolker closed this as completed Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants