File tree 5 files changed +40
-3
lines changed
5 files changed +40
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ This site contains the OpenAPI Initiative Registry and content for the HTML vers
15
15
16
16
## Development
17
17
18
+ > [ !NOTE]
19
+ > As of 2024-08-28 Jekyll version 4.3.2 does _ not_ work with Ruby 3.3.x.
20
+ >
21
+ > Make sure you have Ruby 3.2.x or lower installed.
22
+
18
23
Install [ jekyll] ( https://jekyllrb.com/docs/installation/ ) for your platform, install the site
19
24
~~~ sh
20
25
bundle install
Original file line number Diff line number Diff line change @@ -28,15 +28,20 @@ This site contains the OpenAPI Initiative Registry and content for the HTML vers
28
28
29
29
{% assign schema_files = site.static_files | where: "extname", "" | sort: "path" | reverse %}
30
30
{% assign last_version = "" %}
31
+ {% assign last_kind = "" %}
31
32
{%- for file in schema_files -%}
32
33
{%- assign segments = file.path | split: "/" -%}
33
- {%- if segments[ 1] == "oas" and file.basename contains "lat " -%}
34
+ {%- if segments[ 1] == "oas" and file.basename contains "- " -%}
34
35
{%- if segments[ 2] != last_version -%}
35
36
{%- assign last_version = segments[ 2] %}
36
37
* ** v{{ last_version }}**
38
+ {%- endif -%}
39
+ {%- if segments[ 3] != last_kind -%}
40
+ {%- assign last_kind = segments[ 3] %}
41
+ * [ ** {{ last_kind }}** ] ({{ site.baseurl }}/oas/{{ last_version }}/{{ last_kind }}/latest.html)
37
42
{%- assign separator = ": " -%}
38
43
{%- endif -%}
39
- {{ separator }}[ {{ segments [ 3 ] }}] ({{ site.baseurl }}{{ file.path }})
44
+ {{ separator }} [ {{ file.basename }}] ({{ site.baseurl }}{{ file.path }})
40
45
{%- assign separator = ", " -%}
41
46
{%- endif -%}
42
- {%- endfor - %}
47
+ {%- endfor %}
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : JSON Schema for OpenAPI 3.0
3
+ layout : default
4
+ parent : Schemas
5
+ ---
6
+
7
+ ``` json
8
+ {% include_relative latest % }
9
+ ```
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : JSON Schema for OpenAPI 3.1 - with schema validation
3
+ layout : default
4
+ parent : Schemas
5
+ ---
6
+
7
+ ``` json
8
+ {% include_relative latest % }
9
+ ```
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : JSON Schema for OpenAPI 3.1 - without schema validation
3
+ layout : default
4
+ parent : Schemas
5
+ ---
6
+
7
+ ``` json
8
+ {% include_relative latest % }
9
+ ```
You can’t perform that action at this time.
0 commit comments