@@ -12,26 +12,59 @@ This site contains the OpenAPI Initiative Registry and content for the HTML vers
12
12
13
13
* Proceed to [ Registry] ( ./registry/index.html )
14
14
15
- ## OpenAPI Initiative Specifications
15
+ ## Arazzo Specification
16
16
17
- ### Arazzo Specification Versions
17
+ ### Versions
18
18
19
+ <!-- TODO: make include and call with parameter "arazzo" -->
19
20
{% assign html_files = site.static_files | where: "extname", ".html" | sort: "basename" | reverse %}
20
- {% for file in html_files %}
21
- {% assign segments = file.path | split: "/" %}
22
- {% assign firstchar = file.basename | slice: 0 %}
23
- {% if segments[ 1] == "arazzo" and file.extname == ".html" and firstchar == "v" %}
24
- * [ {{ file.basename }}] ({{ site.baseurl }}{{ file.path }})
25
- {% endif %}
26
- {% endfor %}
21
+ {% assign last_version = "" %}
22
+ {%- for file in html_files -%}
23
+ {%- assign segments = file.path | split: "/" -%}
24
+ {%- assign firstchar = file.basename | slice: 0 -%}
25
+ {%- if segments[ 1] == "arazzo" and firstchar == "v" -%}
26
+ {%- assign minor_version = file.basename | slice: 1, 3 -%}
27
+ {%- if minor_version != last_version -%}
28
+ {% assign last_version = minor_version %}
29
+ * ** [ {{ file.basename }}] ({{ site.baseurl }}{{ file.path }})**
30
+ {%- else -%}
31
+ , [ {{ file.basename }}] ({{ site.baseurl }}{{ file.path }})
32
+ {%- endif -%}{%- endif -%}
33
+ {%- endfor- %}
27
34
28
- ### OpenAPI Specification Versions
35
+ ## OpenAPI Specification
29
36
37
+ ### Versions
38
+
39
+ <!-- TODO: make include and call with parameter "oas" -->
30
40
{% assign html_files = site.static_files | where: "extname", ".html" | sort: "basename" | reverse %}
31
- {% for file in html_files %}
32
- {% assign segments = file.path | split: "/" %}
33
- {% assign firstchar = file.basename | slice: 0 %}
34
- {% if segments[ 1] == "oas" and firstchar == "v" %}
35
- * [ {{ file.basename }}] ({{ site.baseurl }}{{ file.path }})
36
- {% endif %}
37
- {% endfor %}
41
+ {% assign last_version = "" %}
42
+ {%- for file in html_files -%}
43
+ {%- assign segments = file.path | split: "/" -%}
44
+ {%- assign firstchar = file.basename | slice: 0 -%}
45
+ {%- if segments[ 1] == "oas" and firstchar == "v" -%}
46
+ {%- assign minor_version = file.basename | slice: 1, 3 -%}
47
+ {%- if minor_version != last_version -%}
48
+ {% assign last_version = minor_version %}
49
+ * ** [ {{ file.basename }}] ({{ site.baseurl }}{{ file.path }})**
50
+ {%- else -%}
51
+ , [ {{ file.basename }}] ({{ site.baseurl }}{{ file.path }})
52
+ {%- endif -%}{%- endif -%}
53
+ {%- endfor- %}
54
+
55
+ ### Non-Normative JSON Schemas
56
+
57
+ {% assign schema_files = site.static_files | where: "extname", "" | sort: "path" | reverse %}
58
+ {% assign last_version = "" %}
59
+ {%- for file in schema_files -%}
60
+ {%- assign segments = file.path | split: "/" -%}
61
+ {%- if segments[ 1] == "oas" and file.basename contains "lat" -%}
62
+ {%- if segments[ 2] != last_version -%}
63
+ {%- assign last_version = segments[ 2] %}
64
+ * ** v{{ last_version }}**
65
+ {%- assign separator = ": " -%}
66
+ {%- endif -%}
67
+ {{ separator }}[ {{ segments[ 3] }}] ({{ file.path }})
68
+ {%- assign separator = ", " -%}
69
+ {%- endif -%}
70
+ {%- endfor -%}
0 commit comments