@@ -156,8 +156,8 @@ class Configuration
156156 attr_accessor :force_ending_format
157157
158158 def initialize
159- @scheme = 'http '
160- @host = 'petstore.swagger.io '
159+ @scheme = 'https '
160+ @host = '127.0.0.1 '
161161 @base_path = '/v2'
162162 @server_index = nil
163163 @server_operation_index = { }
@@ -290,6 +290,10 @@ def auth_settings
290290 # Returns an array of Server setting
291291 def server_settings
292292 [
293+ {
294+ url : "https://127.0.0.1/v2" ,
295+ description : "The local server without variables" ,
296+ } ,
293297 {
294298 url : "http://{server}.swagger.io:{port}/v2" ,
295299 description : "petstore server" ,
@@ -327,10 +331,6 @@ def server_settings
327331 }
328332 }
329333 } ,
330- {
331- url : "https://127.0.0.1/no_varaible" ,
332- description : "The local server without variables" ,
333- } ,
334334 {
335335 url : "http://server.{version}.openapi-generator.tech" ,
336336 description : "The openapi-generator test server" ,
@@ -351,6 +351,10 @@ def server_settings
351351 def operation_server_settings
352352 {
353353 "PetApi.add_pet" : [
354+ {
355+ url : "http://127.0.0.1/v2" ,
356+ description : "No description provided" ,
357+ } ,
354358 {
355359 url : "http://petstore.swagger.io/v2" ,
356360 description : "No description provided" ,
@@ -398,6 +402,10 @@ def operation_server_settings
398402 }
399403 ] ,
400404 "PetApi.delete_pet" : [
405+ {
406+ url : "http://127.0.0.1/v2" ,
407+ description : "No description provided" ,
408+ } ,
401409 {
402410 url : "http://petstore.swagger.io/v2" ,
403411 description : "No description provided" ,
@@ -445,6 +453,10 @@ def operation_server_settings
445453 }
446454 ] ,
447455 "PetApi.get_pet_by_id" : [
456+ {
457+ url : "http://127.0.0.1/v2" ,
458+ description : "No description provided" ,
459+ } ,
448460 {
449461 url : "http://petstore.swagger.io/v2" ,
450462 description : "No description provided" ,
@@ -492,6 +504,10 @@ def operation_server_settings
492504 }
493505 ] ,
494506 "PetApi.update_pet" : [
507+ {
508+ url : "http://127.0.0.1/v2" ,
509+ description : "No description provided" ,
510+ } ,
495511 {
496512 url : "http://petstore.swagger.io/v2" ,
497513 description : "No description provided" ,
@@ -539,6 +555,10 @@ def operation_server_settings
539555 }
540556 ] ,
541557 "PetApi.update_pet_with_form" : [
558+ {
559+ url : "http://127.0.0.1/v2" ,
560+ description : "No description provided" ,
561+ } ,
542562 {
543563 url : "http://petstore.swagger.io/v2" ,
544564 description : "No description provided" ,
0 commit comments