* Introduce a new "added-in" template and use it on endpoints * Use "added-in" on schema properties too * Annotate sections of the spec with their added versions * Demo of "added-in" on a room version (to be fleshed out) * Use clearer versioning semantics * Update and fix validator for Swagger custom properties * Fix docs
8 lines
No EOL
273 B
HTML
8 lines
No EOL
273 B
HTML
{{ $ver := .Params.v }}
|
|
{{ $this := .Params.this }}
|
|
|
|
{{ if $this }}
|
|
<span>**[New in this version]**</span>
|
|
{{ else }}
|
|
<span>**[Added in `v{{ $ver }}`]**</span>
|
|
{{ end }} {{/* Do not leave an empty line at the end of this file otherwise the inline behaviour breaks. */}} |