Lines 78-84
sub startup {
Link Here
|
78 |
try { |
78 |
try { |
79 |
$spec = $validator->bundle( |
79 |
$spec = $validator->bundle( |
80 |
{ |
80 |
{ |
81 |
replace => 1, |
|
|
82 |
schema => $self->home->rel_file("api/v1/swagger/swagger.yaml") |
81 |
schema => $self->home->rel_file("api/v1/swagger/swagger.yaml") |
83 |
} |
82 |
} |
84 |
); |
83 |
); |
Lines 95-104
sub startup {
Link Here
|
95 |
spec => $spec, |
94 |
spec => $spec, |
96 |
route => $self->routes->under('/api/v1')->to('Auth#under'), |
95 |
route => $self->routes->under('/api/v1')->to('Auth#under'), |
97 |
schema => ( $swagger_schema ) ? $swagger_schema : undef, |
96 |
schema => ( $swagger_schema ) ? $swagger_schema : undef, |
98 |
allow_invalid_ref => |
|
|
99 |
1, # required by our spec because $ref directly under |
100 |
# Paths-, Parameters-, Definitions- & Info-object |
101 |
# is not allowed by the OpenAPI specification. |
102 |
} |
97 |
} |
103 |
); |
98 |
); |
104 |
} |
99 |
} |
Lines 114-120
sub startup {
Link Here
|
114 |
$validator->load_and_validate_schema( |
109 |
$validator->load_and_validate_schema( |
115 |
$self->home->rel_file("api/v1/swagger/swagger.yaml"), |
110 |
$self->home->rel_file("api/v1/swagger/swagger.yaml"), |
116 |
{ |
111 |
{ |
117 |
allow_invalid_ref => 1, |
|
|
118 |
schema => ( $swagger_schema ) ? $swagger_schema : undef, |
112 |
schema => ( $swagger_schema ) ? $swagger_schema : undef, |
119 |
} |
113 |
} |
120 |
); |
114 |
); |
Lines 131-140
sub startup {
Link Here
|
131 |
OpenAPI => { |
125 |
OpenAPI => { |
132 |
spec => $spec, |
126 |
spec => $spec, |
133 |
route => $self->routes->under('/api/v1')->to('Auth#under'), |
127 |
route => $self->routes->under('/api/v1')->to('Auth#under'), |
134 |
allow_invalid_ref => |
|
|
135 |
1, # required by our spec because $ref directly under |
136 |
# Paths-, Parameters-, Definitions- & Info-object |
137 |
# is not allowed by the OpenAPI specification. |
138 |
} |
128 |
} |
139 |
); |
129 |
); |
140 |
} |
130 |
} |
141 |
- |
|
|