summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2016-05-28 11:53:13 +0300
committerVille Skyttä <ville.skytta@iki.fi>2016-05-28 11:53:55 +0300
commitda064b6e89df0fc98a9adfdb9c49c23def7972ab (patch)
treec52ce9fa715df435982a5e767bbca0c798dca81c
parent10ad0c738089a77ea4d05f449b479891d538272e (diff)
Revert "Revert "Add application/raml+yaml""
Re-add with test file included. This reverts commit fe27b8c8f1391fb4392b11635bfce2c241b457a7.
-rw-r--r--freedesktop.org.xml.in10
-rw-r--r--tests/list2
-rw-r--r--tests/test.raml9
3 files changed, 21 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index c6fec84..0a41476 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -358,6 +358,16 @@ command to generate the output files.
<match type="string" value="DataPlkr" offset="60"/>
</magic>
</mime-type>
+ <mime-type type="application/raml+yaml">
+ <_comment>RAML document</_comment>
+ <acronym>RAML</acronym>
+ <expanded-acronym>RESTful API Modeling Language</expanded-acronym>
+ <sub-class-of type="application/x-yaml"/>
+ <magic>
+ <match type="string" value="#%RAML " offset="0"/>
+ </magic>
+ <glob pattern="*.raml"/>
+ </mime-type>
<mime-type type="application/relax-ng-compact-syntax">
<_comment>RELAX NG XML schema</_comment>
<acronym>RELAX NG</acronym>
diff --git a/tests/list b/tests/list
index efcf0fe..e38203a 100644
--- a/tests/list
+++ b/tests/list
@@ -313,6 +313,8 @@ test.rs text/rust ox
test.csvs text/csv-schema ox
# Copied from http://coffeescript.org/#overview
test.coffee application/vnd.coffeescript ox
+# Copied from https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md#applying-security-schemes
+test.raml application/raml+yaml
# xml subtypes
../shared-mime-info-spec.xml application/x-docbook+xml xox
diff --git a/tests/test.raml b/tests/test.raml
new file mode 100644
index 0000000..ba2da85
--- /dev/null
+++ b/tests/test.raml
@@ -0,0 +1,9 @@
+#%RAML 1.0
+title: GitHub API
+version: v3
+baseUri: https://api.github.com
+securitySchemes:
+ oauth_2_0: !include securitySchemes/oauth_2_0.raml
+/users/{userid}/gists:
+ get:
+ securedBy: [null, oauth_2_0]