Skip to content

Commit

Permalink
Fix event-group shortcode for changes in resolve-refs partial (#1754
Browse files Browse the repository at this point in the history
)

Signed-off-by: Kévin Commaille <[email protected]>
  • Loading branch information
zecakeh authored Mar 19, 2024
1 parent 848c1e0 commit 575c84d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/internal/newsfragments/1754.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for `$ref` URIs containing fragments in OpenAPI definitions and JSON schemas.
3 changes: 2 additions & 1 deletion layouts/shortcodes/event-group.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}

Expand Down

0 comments on commit 575c84d

Please sign in to comment.