<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>OpenAPI functions on Hugo</title><link>https://v0-122-0--gohugoio.netlify.app/functions/openapi3/</link><description>Recent content in OpenAPI functions on Hugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-122-0--gohugoio.netlify.app/functions/openapi3/index.xml" rel="self" type="application/rss+xml"/><item><title>openapi3.Unmarshal</title><link>https://v0-122-0--gohugoio.netlify.app/functions/openapi3/unmarshal/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/openapi3/unmarshal/</guid><description>Use the openapi3.Unmarshal function with global, page, or remote resources.
For example, to work with a remote OpenAPI definition:
{{ $url := &amp;#34;https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json&amp;#34; }} {{ $api := &amp;#34;&amp;#34; }} {{ with resources.GetRemote $url }} {{ with .Err }} {{ errorf &amp;#34;%s&amp;#34; . }} {{ else }} {{ $api = . | openapi3.Unmarshal }} {{ end }} {{ else }} {{ errorf &amp;#34;Unable to get remote resource %q&amp;#34; $url }} {{ end }} To inspect the data structure:</description></item></channel></rss>