From 758bc44aea72ebde6e0819b48769e0fbb1f83eba Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Fri, 28 May 2021 12:17:27 -0600 Subject: application/schema+json: new type JSON Schema files are distinguished from other JSON files by a "$schema" property which is typically at the beginning of the file. https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00 --- data/freedesktop.org.xml.in | 11 +++++++++++ tests/mime-detection/list | 1 + tests/mime-detection/schema.json | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 tests/mime-detection/schema.json diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 0592a520..42480371 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -2592,6 +2592,17 @@ command to generate the output files. + + JSON schema + + + + + + + + + Jupyter notebook document diff --git a/tests/mime-detection/list b/tests/mime-detection/list index 9f110da9..768a396e 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -298,6 +298,7 @@ webfinger.jrd application/jrd+json ox my-data.json-patch application/json-patch+json ox # Copied from http://www.w3.org/TR/json-ld/ json-ld-full-iri.jsonld application/ld+json ox +schema.json application/schema+json x test.ipynb application/x-ipynb+json test-reordered.ipynb application/x-ipynb+json ox test.cs text/x-csharp ox diff --git a/tests/mime-detection/schema.json b/tests/mime-detection/schema.json new file mode 100644 index 00000000..5ee3ed6c --- /dev/null +++ b/tests/mime-detection/schema.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "properties": { + "foo": {"type": "string"} + } +} -- cgit v1.2.1