Coder Social home page Coder Social logo

blueman's People

Contributors

chsergey avatar kielabokkie avatar webysther avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blueman's Issues

The first request doesn't have a collectionId

And thus the collection can't be imported in Postman. Adding the collectionId manually fixes the Issue.

This happens ONLY to the first request of the file. Re-converting the Blueprint doesn't fix the problem.

I can't show the .json / .md files I converted as they contain confidential data.

Your API Blueprint needs to be build with Snow Crash 0.9.0 or higher.

I have generated my json file using protagonist. Version 1.2.0 which is the latest.


  grunt.registerTask('generateJson', 'Generate js version of referral file.', function () {
    var protagonist = require('protagonist');
    var content = grunt.file.read('../../../../doc/public/referral-api.md');


    var result = protagonist.parseSync(content);
    console.log(result);
    var json = JSON.stringify(result);
    grunt.file.write('test/frontend/referral.json', json);

  });

When i run the command to convert I get that exception.

blueman convert referral.json 

Any ideas?

PHP Notice: Undefined variable: convertedUri in ConvertCommand.php:172

Hello,

For some of our endpoints we get those errors:

PHP Notice:  Undefined variable: convertedUri in phar:///usr/local/bin/blueman/vendor/pixelfusion/blueman/src/Blueman/Console/Command/ConvertCommand.php on line 172
PHP Warning:  Invalid argument supplied for foreach() in phar:///usr/local/bin/blueman/vendor/pixelfusion/blueman/src/Blueman/Console/Command/ConvertCommand.php on line 161

Do you have any clue why? In any case, your code should initialize the variable so the notice is avoided.

"Trying to get property of non-object" when running command

Hi,

I generated a json file from my api blueprint file using node module protagonist.

I then installed blueman using composer.

I ran the command, but I see some php notices:

PHP Notice: Trying to get property of non-object in C:\PHP\your-project-name\src\Blueman\Console\Command\ConvertCommand.php on line
198

This is a code snippet of my json generation using grunt and protagonist:

  grunt.registerTask('blah', 'Generate js version of apiary file.', function () {
    var protagonist = require('protagonist');
    var content = grunt.file.read('./doc/track-api.md');

    var result = protagonist.parseSync(content);
    console.log(result.ast);
    var json = JSON.stringify(result.ast);
    grunt.file.write('test/frontend/apiary.json', json);

  });

I then run the command

./bin/console convert apiary.json --path=/c/java-projects/track-ui/test/frontend/.

This generates a collection.json file. But when I import it in postman, I get an error:

Invalid collection file: Each request must have a collectionId field.

Any clues!?

Thanks,
Shane.

Is it possible to change the output file name?

This is a great tool, I'm wondering if there is a command line option to change the file output name though?

For example snowcrash itself uses

snowcrash --format json --output X.json input.md

which I can then use as the input for Blueman such as:

blueman convert X.json

however it seems to only save the file name in the current working directory where you run the blueman command, and only as "collection.json".

Although this is really a nice to have option only as it looks like I can do something like:

blueman convert X.json && mv collection.json /anywhere/anything.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.