4 <title>Docson Test</title>
6 <link rel="stylesheet" href="../css/docson.css">
7 <script src="../lib/require.js"></script></head>
10 font-family: verdana, helvetica;
15 <script charset="utf-8">
16 var tests = [ "invoice$Invoice", "enum", "schema","additionalProperties", "address", "fstab", "basic", "not", "oneOf", "anyOf", "allOf", "example2", "properties", "ref"]
17 require.config({ baseUrl: ".."});
18 require(["docson", "lib/jquery"], function(docson) {
19 docson.templateBaseUrl="../templates";
21 $.each(tests, function(k, test) {
22 var block = $("<div/>");
23 var segments = test.split("$");
24 $("body").append("<h2>"+segments[0]+"</h2>");
25 $("body").append(block);
26 $.get(segments[0]+".json").done(function(items) {
27 $.each(items, function(k, item) {
28 var element = $("<div/>");
29 block.append(element);
30 if(!item.schema.description) {
31 item.schema.description = item.description;
33 docson.doc(element, item.schema, segments[1]);