E96 / swagger2slate

Convert swagger api documentation (http://swagger.io) to slate static html page (https://github.com/tripit/slate)
93 stars 25 forks source link

Undefined index errors #6

Closed jamesogden closed 8 years ago

jamesogden commented 8 years ago

I can't seem to get swagger2slate.phar to run successfully. I've tried multiple approaches:

1) Running from cygwin:

php swagger2slate.phar convert swagger.json -o source/index.md

Nothing happens... no output at all.

2) Running from the vagrant box where slate is running:

vagrant@vagrant-ubuntu-trusty-64:/vagrant$ ./swagger2slate.phar convert swagger.json -o source/index.md
PHP Notice:  Undefined index: name in phar:///vagrant/swagger2slate.phar/swagger/Parameters.php on line 17
...
PHP Notice:  Undefined index: default in phar:///vagrant/swagger2slate.phar/index.php on line 92
Segmentation fault (core dumped)
vagrant@vagrant-ubuntu-trusty-64:/vagrant$

3) Attempting to run from your source code from either environment:

% php index.php
PHP Warning:  require_once(/cygdrive/c/Users/jogden/Documents/api-documentation/swagger2slate/vendor/autoload.php): failed to open stream: No such file or directory in /cygdrive/c/Users/jogden/Documents/api-documentation/swagger2slate/index.php on line 9
PHP Fatal error:  require_once(): Failed opening required '/cygdrive/c/Users/jogden/Documents/api-documentation/swagger2slate/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php/php') in /cygdrive/c/Users/jogden/Documents/api-documentation/swagger2slate/index.php on line 9
magdiel01 commented 8 years ago

Any luck?

saikrishnaradarapu commented 8 years ago

Does any one of you solved the problem?? Please help me I am unable to use .phar file. (I am new to php)

m8rge commented 8 years ago

Please provide your swagger.json file