summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2015-06-22 22:41:01 -0600
committerBastien Nocera <hadess@hadess.net>2015-07-10 15:46:37 +0200
commit8141a4b0c91bf4a8a4c5b224f6e8e0c27012f0fe (patch)
tree18e0a9113191508e4c6064b9fd27ef9c038f482f
parentdb2dfb343ad3f8a3ada4df6eb6a1de79597ca12a (diff)
downloadshared-mime-info-8141a4b0c91bf4a8a4c5b224f6e8e0c27012f0fe.tar.gz
Add application/jrd+json as subclass of application/json
https://bugs.freedesktop.org/show_bug.cgi?id=91063
-rw-r--r--freedesktop.org.xml.in8
-rw-r--r--tests/list2
-rw-r--r--tests/webfinger.jrd10
3 files changed, 20 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 33877e80..9ce40210 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -2212,6 +2212,14 @@ command to generate the output files.
<generic-icon name="text-x-script"/>
<glob pattern="*.json"/>
</mime-type>
+ <mime-type type="application/jrd+json">
+ <_comment>JRD document</_comment>
+ <acronym>JRD</acronym>
+ <expanded-acronym>JSON Resource Descriptor</expanded-acronym>
+ <sub-class-of type="application/json"/>
+ <generic-icon name="text-x-script"/>
+ <glob pattern="*.jrd"/>
+ </mime-type>
<mime-type type="application/ld+json">
<_comment>JSON-LD document</_comment>
<acronym>JSON-LD</acronym>
diff --git a/tests/list b/tests/list
index 46f21ce8..4609e23e 100644
--- a/tests/list
+++ b/tests/list
@@ -222,6 +222,8 @@ Utils.jsm application/javascript ox
# The following two copied from RFC 4627.
json_object.json application/json ox
json_array.json application/json ox
+# Copied from RFC 7033
+webfinger.jrd application/jrd+json ox
# Copied from http://www.w3.org/TR/json-ld/
json-ld-full-iri.jsonld application/ld+json ox
test.cs text/x-csharp ox
diff --git a/tests/webfinger.jrd b/tests/webfinger.jrd
new file mode 100644
index 00000000..a514ea66
--- /dev/null
+++ b/tests/webfinger.jrd
@@ -0,0 +1,10 @@
+{
+ "subject" : "acct:carol@example.com",
+ "links" :
+ [
+ {
+ "rel" : "http://openid.net/specs/connect/1.0/issuer",
+ "href" : "https://openid.example.com"
+ }
+ ]
+}