diff --git a/content/client-server-api/_index.md b/content/client-server-api/_index.md index 9daf9fd0..720425c5 100644 --- a/content/client-server-api/_index.md +++ b/content/client-server-api/_index.md @@ -1496,7 +1496,7 @@ server, which associates it with a newly generated `client_id`. These values are used to describe the client to the user and define how the client interacts with the server. -{{% json-schema name="oauth2-client-metadata" %}} +{{% definition path="schemas/oauth2-client-metadata" %}} ###### Metadata localization diff --git a/layouts/shortcodes/json-schema.html b/layouts/shortcodes/json-schema.html deleted file mode 100644 index 632ed03d..00000000 --- a/layouts/shortcodes/json-schema.html +++ /dev/null @@ -1,46 +0,0 @@ -{{/* - - This template is used to render the fields of a JSON schema that is not an - event. - - It expects to be passed a `name` parameter, which is the name of a file - under /data/schemas. The file extension is omitted. - - For example: - - {{% json-schema name="oauth2-client-metadata" %}} - -*/}} - -{{ $schema := index .Site.Data "schemas" .Params.name }} -{{ $path := delimit (slice "schemas" .Params.name) "/" }} - -{{ $schema = partial "json-schema/resolve-refs" (dict "schema" $schema "path" $path) }} -{{ $schema = partial "json-schema/resolve-allof" $schema }} - -
- -
- - -

- {{ $schema.title }} -

-
- -
- -{{ if $schema.description -}} - {{ $schema.description | markdownify -}} -{{ end -}} - -{{ $schema = merge $schema (dict "title" "") -}} - -{{ $additional_types := partial "json-schema/resolve-additional-types" (dict "schema" $schema) -}} -{{ range $additional_types -}} - {{ partial "openapi/render-object-table" . -}} -{{ end -}} - -
- -