A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/r/redocly-cli.rb below:

class RedoclyCli < Formula desc "Your all-in-one OpenAPI utility" homepage "https://redocly.com/docs/cli" url "https://registry.npmjs.org/@redocly/cli/-/cli-1.34.4.tgz" sha256 "8aa8971e29740a8398c49406f48951c5abc0871a5e5a5bf360004f5923de51eb" license "MIT" bottle do sha256 cellar: :any_skip_relocation, arm64_sequoia: "22cb70586f028193f19bdb09f018ffba2dd1175e9724c1ba5421cc2a6c3b2b7a" sha256 cellar: :any_skip_relocation, arm64_sonoma: "22cb70586f028193f19bdb09f018ffba2dd1175e9724c1ba5421cc2a6c3b2b7a" sha256 cellar: :any_skip_relocation, arm64_ventura: "22cb70586f028193f19bdb09f018ffba2dd1175e9724c1ba5421cc2a6c3b2b7a" sha256 cellar: :any_skip_relocation, sonoma: "a67ba77bafb935cc288f8314931fb2f5a9a96eb45336c2ea8ee4e48837400c79" sha256 cellar: :any_skip_relocation, ventura: "a67ba77bafb935cc288f8314931fb2f5a9a96eb45336c2ea8ee4e48837400c79" sha256 cellar: :any_skip_relocation, arm64_linux: "22cb70586f028193f19bdb09f018ffba2dd1175e9724c1ba5421cc2a6c3b2b7a" sha256 cellar: :any_skip_relocation, x86_64_linux: "22cb70586f028193f19bdb09f018ffba2dd1175e9724c1ba5421cc2a6c3b2b7a" end depends_on "node" def install system "npm", "install", *std_npm_args bin.install_symlink libexec.glob("bin/*") end test do assert_match version.to_s, shell_output("#{bin}/redocly --version") test_file = testpath/"openapi.yaml" test_file.write <<~YML openapi: '3.0.0' info: version: 1.0.0 title: Swagger Petstore description: test license: name: MIT url: https://opensource.org/licenses/MIT servers: #ServerList - url: http://petstore.swagger.io:{Port}/v1 variables: Port: enum: - '8443' - '443' default: '8443' security: [] # SecurityRequirementList tags: # TagList - name: pets description: Test description - name: store description: Access to Petstore orders paths: /pets: get: summary: List all pets operationId: list_pets tags: - pets parameters: - name: Accept-Language in: header description: 'The language you prefer for messages. Supported values are en-AU, en-CA, en-GB, en-US' example: en-US required: false schema: type: string default: en-AU responses: '200': description: An paged array of pets headers: x-next: description: A link to the next page of responses schema: type: string content: application/json: encoding: historyMetadata: contentType: application/json; charset=utf-8 links: address: operationId: getUserAddress parameters: userId: $request.path.id YML assert_match "Woohoo! Your API description is valid. 🎉", shell_output("#{bin}/redocly lint --extends=minimal #{test_file} 2>&1") end end

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4