Fix `event-group` shortcode for changes in `resolve-refs` partial (#1754)

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
travis/msc2702-msc2701
Kévin Commaille 8 months ago committed by GitHub
parent 848c1e0348
commit 575c84d431
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1 @@
Add support for `$ref` URIs containing fragments in OpenAPI definitions and JSON schemas.

@ -12,7 +12,7 @@
*/}}
{{ $path := "event-schemas/schema" }}
{{ $base_path := "event-schemas/schema" }}
{{ $events := index .Site.Data "event-schemas" "schema" }}
{{ $group_name := .Params.group_name }}
@ -22,6 +22,7 @@
{{ $prefix := substr $event_name 0 (len $group_name) }}
{{ if eq $prefix $group_name }}
{{ $path := delimit (slice $base_path $event_name) "/" }}
{{ $event_data = partial "json-schema/resolve-refs" (dict "schema" $event_data "path" $path) }}
{{ $event_data := partial "json-schema/resolve-allof" $event_data }}

Loading…
Cancel
Save