From 65eb21aa9b9d3f2574ef719890626f89b9962a97 Mon Sep 17 00:00:00 2001 From: Leonardo Taglialegne Date: Thu, 28 Nov 2024 12:49:47 +0100 Subject: [PATCH] ifconfig.ovh --- cli/example/ifconfig.ovh.json | 32 ++++++++++++++++++++++++++++++++ cli/src/TestGenScript.elm | 5 +++++ 2 files changed, 37 insertions(+) create mode 100644 cli/example/ifconfig.ovh.json diff --git a/cli/example/ifconfig.ovh.json b/cli/example/ifconfig.ovh.json new file mode 100644 index 00000000..7af384e5 --- /dev/null +++ b/cli/example/ifconfig.ovh.json @@ -0,0 +1,32 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Ifconfig", + "version": "v1" + }, + "servers": [ + { + "description": "Production", + "url": "https://ifconfig.ovh" + } + ], + "paths": { + "/": { + "get": { + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "type": "string", + "format": "ip" + } + } + } + } + } + } + } + } +} diff --git a/cli/src/TestGenScript.elm b/cli/src/TestGenScript.elm index e5daabb0..3e2bf07a 100644 --- a/cli/src/TestGenScript.elm +++ b/cli/src/TestGenScript.elm @@ -74,6 +74,10 @@ run = gitHub = OpenApi.Config.inputFrom (OpenApi.Config.File "./example/github-spec.json") + ifconfigOvh : OpenApi.Config.Input + ifconfigOvh = + OpenApi.Config.inputFrom (OpenApi.Config.File "./example/ifconfig.ovh.json") + anyOfEnums : OpenApi.Config.Input anyOfEnums = OpenApi.Config.inputFrom (OpenApi.Config.File "./example/anyOfEnums.yaml") @@ -107,6 +111,7 @@ run = |> OpenApi.Config.withInput trustmark |> OpenApi.Config.withInput trustmarkTradeCheck |> OpenApi.Config.withInput gitHub + |> OpenApi.Config.withInput ifconfigOvh |> OpenApi.Config.withInput anyOfEnums |> OpenApi.Config.withInput binaryResponse |> OpenApi.Config.withInput nullableEnum