UNPKG
swagger-to-mock
Version:
latest (0.1.12)
0.1.12
0.1.10
0.1.9
0.1.8
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
mock data generator from Swagger (OpenAPI 3)
github.com/yayoc/swagger-to-mock
yayoc/swagger-to-mock
swagger-to-mock
/
dist
/
response.d.ts
11 lines
(10 loc)
•
319 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
OpenAPIObject
}
from
"openapi3-ts"
;
export
declare
const
APPLICATION_JSON
=
"application/json"
;
export
declare
type
ResponsesType
= { [
path
:
string
]: { [
APPLICATION_JSON
]: {
schema
:
any
; }; }; };
export
declare
const
extractResponses
:
(
obj
:
OpenAPIObject
) =>
ResponsesType
;