Does not generate anything
Closed this issue · 4 comments
moronicgeek commented
When running
npx swagger-to-mock with a normal swagger.json
nothing is outputted.
I tested the open api 3 yml file too and nothing is generated either.
Great idea wish i could get it to work :)
yugandhar-pathi commented
Same here.
I get below two lines printed.
But not sure where the files are created.
swagger-to-mock
Completed
yayoc commented
Hi, Thanks for reporting.
Could you share your yml file if possible to reproduce the issue?
porteusconf commented
Here is ipify.yml file that generates no output file(s).
swagger: '2.0'
info:
description: A Simple IP Address API
title: ipify
version: "1.1"
host: api.ipify.org
schemes:
- https
basePath: /
paths:
/:
get:
summary: Get client
parameters:
- in: query
name: format
type: string
description: 'The format to return the response in, i.e. json.'
default: json
responses:
'200':
description: Success response
schema:
type: object
properties:
ip:
type: string
example: 88.68.10.107
yayoc commented
@porteusconf
Hi, It seems that your file looks swagger ver2 and this CLI only supports ver3.