Skip to content
Snippets Groups Projects
Commit 96dba337 authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Document metadata value validation

parent 963ec3ec
No related branches found
No related tags found
1 merge request!80Document metadata value validation
Pipeline #13863 passed
......@@ -13,7 +13,8 @@ Common use-cases are:
## Types
Arkindex support a few types of Metadatas:
Arkindex supports a few types of Metadatas:
- `Text`, without formatting
- `Markdown`, for text that needs formatting such as tables, list, etc. (More information about [Markdown](https://www.markdownguide.org/))
- `Date`, for complete (year-month-day) or incomplete (just the year, or year-month) dates
......@@ -24,10 +25,14 @@ Arkindex support a few types of Metadatas:
## Rules
- An **Element** can have several metadatas of the same type,
- An **Element** can have several metadatas of the same type and name, but they will be ordered,
- A metadata name can be up to 250 characters long,
- The types and names of metadatas are restricted by projects, and have to be set by an instance administrator.
- An **Element** can have several metadatas of the same type.
- An **Element** can have several metadatas of the same type and name, but they will be ordered.
- A metadata name can be up to 250 characters long.
- The types and names of metadatas are restricted by projects, and have to be set by a project administrator.
- A metadata with the type `URL` must be a valid URL starting with `http://` or `https://`.
- A metadata with the type `Date` must use a `YYYY-MM-DD`, `YYYY-MM` or `YYYY`, or declare a year interval with `YYYY-YYYY`.
- A metadata with the type `Numeric` must be a valid floating-point number.
- A metadata with the type `Markdown` can use Markdown syntax or a limited set of HTML tags. Special characters such as `&`, `<` and `>` will be escaped.
## Web interface
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment