Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions cli/example/ifconfig.ovh.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
}
}
}
}
5 changes: 5 additions & 0 deletions cli/src/TestGenScript.elm
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down