diff --git a/cli/example/ifconfig.ovh.json b/cli/example/ifconfig.ovh.json new file mode 100644 index 0000000..7af384e --- /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 e5daabb..3e2bf07 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