JakubOnderka / api-blueprint-validator

Apiary API Blueprint Validator
MIT License
18 stars 16 forks source link

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

Open coagulant opened 9 years ago

coagulant commented 9 years ago

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'
cherehapa commented 7 years ago

After applying our pull request #16 I see no problem w/ file you linked above. It should be already fixed before or by pull requests merged in ours:

root@partner# api-blueprint-validator/bin/api-blueprint-validator ./10.\ Data\ Structures.md root@partner# api-blueprint-validator/bin/api-blueprint-validator --fail-on-warnings=true --require-name=true ./10.\ Data\ Structures.md root@partner#