Skip to content

Commit

Permalink
test: adds test for optional server variable
Browse files Browse the repository at this point in the history
  • Loading branch information
atombender committed Jul 1, 2024
1 parent 8aa1de4 commit 99f5080
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
9 changes: 9 additions & 0 deletions _testdata/positive/servers.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@
{
"x-ogen-server-name": "const",
"url": "https://cdn.example.com/v1"
},
{
"x-ogen-server-name": "optionalVars",
"url": "https://cdn.example.com/{version}",
"variables": {
"version": {
"default": "v1"
}
}
}
],
"info": {
Expand Down
47 changes: 47 additions & 0 deletions internal/integration/test_servers/oas_servers_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 99f5080

Please sign in to comment.