Code Monkey home page Code Monkey logo

api-blueprint-validator's People

Contributors

bdeanindy avatar jakubonderka avatar mikaa123 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

api-blueprint-validator's Issues

[Request] Add flag to allow fail on warning

In some cases the warning are actually fatal to the output of the api-blueprint parser (apiary for example).

Proposal to add a --fail-on-warning=false flag to the tool so that users can decide whether they want to be more restrictive with their validation (I have this validation tool as a part of my automated CI build, and it returns 0 when there are warnings).

From looking at the source code it looks like this might need to be a feature added to protagonist.

Does not validate valid blueprints (Parse error on line 1)

Valid example blueprint is considered invalid

Error in JSON response in group "Coupons", resource "Coupons", action "Retrieve a Coupon"
    Parse error on line 1:

    ^
    Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'EOF'

Error in JSON response in group "Coupons", resource "Coupons", action "List all Coupons"
    Parse error on line 1:

    ^
    Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'EOF'

Error in JSON request in group "Coupons", resource "Coupons", action "Create a Coupon"
    Parse error on line 1:

    ^
    Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'EOF'

Error in JSON response in group "Coupons", resource "Coupons", action "Create a Coupon"
    Parse error on line 1:

    ^
    Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'EOF'

Please update package.json

Currently you declare a hard-coded version dependency on protagonist. Can you either update the dependency to the latest (v0.17.1) or switch to an appropriate semver range instead?

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.