Developer documentation · schema 3.1.8GitHub
Fair3RFDF schema

Writing the schema

Reading the schema

Minimal structure

{
  "apis": {},
  "vocabularies": {},
  "sections": []
}

Minimal working example

{
  "vocabularies": {
    "yes_no": [
      { "value": "yes", "label": "Yes" },
      { "value": "no", "label": "No" }
    ]
  },
  "sections": [
    {
      "id": "general",
      "title": "General Information",
      "fields": [
        {
          "id": "title",
          "label": "Title",
          "type": "text",
          "required": true,
          "output": { "path": "titles", "mode": "append", "tpl": { "title": "$value" } }
        },
        {
          "id": "validated",
          "label": "Data validated",
          "type": "select",
          "vocabulary": "yes_no",
          "output": { "path": "notes", "mode": "set" }
        }
      ]
    }
  ]
}

Edit this page on GitHub