Skip to content

Commit 7b1c45b

Browse files
wing328ilovezfs
authored andcommitted
openapi-generator 3.0.2 (#29164)
fix warning in test
1 parent c73e667 commit 7b1c45b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Formula/openapi-generator.rb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class OpenapiGenerator < Formula
22
desc "Generate clients, server & docs from an OpenAPI spec (v2, v3)"
33
homepage "https://openapi-generator.tech/"
4-
url "https://search.maven.org/remotecontent?filepath=org/openapitools/openapi-generator-cli/3.0.1/openapi-generator-cli-3.0.1.jar"
5-
sha256 "f3a6fcb06abf19f955d9c9cd8c734e1ebcb5b93dfaa5dbbad5d98e0f2e2e0524"
4+
url "https://search.maven.org/remotecontent?filepath=org/openapitools/openapi-generator-cli/3.0.2/openapi-generator-cli-3.0.2.jar"
5+
sha256 "825eec41f779144b3c6cc2f55190620411b009f20ed2440be564f01a87dc7b34"
66

77
head do
88
url "https://github.com/OpenAPITools/openapi-generator.git"
@@ -35,13 +35,18 @@ def install
3535
info:
3636
version: 0.0.0
3737
title: Simple API
38+
host: localhost
39+
basePath: /v2
40+
schemes:
41+
- http
3842
paths:
3943
/:
4044
get:
45+
operationId: test_operation
4146
responses:
4247
200:
4348
description: OK
4449
EOS
45-
system bin/"openapi-generator", "generate", "-i", "minimal.yaml", "-l", "openapi"
50+
system bin/"openapi-generator", "generate", "-i", "minimal.yaml", "-g", "openapi"
4651
end
4752
end

0 commit comments

Comments
 (0)