Skip to content

Commit 845bc93

Browse files
committed
use localhost
1 parent b217937 commit 845bc93

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/openapi-generator/src/test/resources/3_0/crystal/petstore.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
servers:
3-
- url: 'http://petstore.swagger.io/v2'
3+
- url: 'http://localhost/v2'
44
info:
55
description: >-
66
This is a sample server Petstore server. For this sample, you can use the api key
@@ -636,7 +636,7 @@ components:
636636
type: oauth2
637637
flows:
638638
implicit:
639-
authorizationUrl: 'http://petstore.swagger.io/api/oauth/dialog'
639+
authorizationUrl: 'http://localhost/api/oauth/dialog'
640640
scopes:
641641
'write:pets': modify pets in your account
642642
'read:pets': read your pets

samples/client/petstore/crystal/src/petstore/configuration.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module Petstore
130130
# Create a new `Configuration`.
131131
def initialize
132132
@scheme = "http"
133-
@host = "petstore.swagger.io"
133+
@host = "localhost"
134134
@base_path = "/v2"
135135
@server_index = 0
136136
@server_operation_index = {} of Symbol => String
@@ -237,7 +237,7 @@ module Petstore
237237
def server_settings
238238
[
239239
{
240-
url: "http://petstore.swagger.io/v2",
240+
url: "http://localhost/v2",
241241
description: "No description provided",
242242
}
243243
]

0 commit comments

Comments
 (0)