Skip to content

Instantly share code, notes, and snippets.

@bdarcus
Last active March 1, 2023 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdarcus/e463d7b87ea4a41d8c167c66ef952c22 to your computer and use it in GitHub Desktop.
Save bdarcus/e463d7b87ea4a41d8c167c66ef952c22 to your computer and use it in GitHub Desktop.
BibLaTeX Reference JSON/YAML Schema
$schema: http://json-schema.org/draft-06/schema#
$ref: '#/definitions/bibreference'
definitions:
bibreference:
type: object
additionalProperties: false
properties:
author:
type: string
bookauthor:
type: string
annotator:
type: string
commentator:
type: string
editor:
type: string
editora:
type: string
editorb:
type: string
editorc:
type: string
editortype:
type: string
editoratype:
type: string
editorbtype:
type: string
editorctype:
type: string
nameaddon:
type: string
organization:
type: string
translator:
type: string
shortauthor:
type: string
shorteditor:
type: string
abstract:
type: string
addendum:
type: string
afterword:
type: string
annotation:
type: string
bookpagination:
type: string
booksubtitle:
type: string
booktitle:
type: string
booktitleaddon:
type: string
chapter:
type: string
date:
type: string
doi:
type: string
edition:
type: string
eid:
type: string
eprint:
type: string
eprintclass:
type: string
eprinttype:
type: string
eventdate:
type: string
eventtitle:
type: string
eventtitleaddon:
type: string
file:
type: string
foreword:
type: string
holder:
type: string
howpublished:
type: string
indextitle:
type: string
institution:
type: string
introduction:
type: string
isan:
type: string
isbn:
type: string
ismn:
type: string
isrn:
type: string
issn:
type: string
issue:
type: string
issuesubtitle:
type: string
issuetitle:
type: string
issuetitleaddon:
type: string
iswc:
type: string
journalsubtitle:
type: string
journaltitle:
type: string
journaltitleaddon:
type: string
label:
type: string
language:
type: string
library:
type: string
location:
type: string
mainsubtitle:
type: string
maintitle:
type: string
maintitleaddon:
type: string
note:
type: string
number:
type: string
origdate:
type: string
origlanguage:
type: string
origlocation:
type: string
origpublisher:
type: string
origtitle:
type: string
pages:
type: string
pagetotal:
type: integer
pagination:
type: string
part:
type: string
publisher:
type: string
pubstate:
type: string
reprinttitle:
type: string
series:
type: string
shorthand:
type: string
shorthandintro:
type: string
shortjournal:
type: string
shortseries:
type: string
shorttitle:
type: string
subtitle:
type: string
title:
type: string
titleaddon:
type: string
type:
type: string
url:
type: string
format: uri
qt-uri-protocols:
- http
urldate:
type: string
venue:
type: string
version:
type: string
volume:
type: string
volumes:
type: integer
year:
type: string
required:
- date
- title
- type
title: BibLaTeX JSON/YAML Schema
@bdarcus
Copy link
Author

bdarcus commented Mar 1, 2023

Not sure if this actually useful, but gives a biblatex data schema that can be used to provide auto-completing YAML editing and validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment