Giter VIP home page Giter VIP logo

apiblueprintorg's People

Contributors

abtris avatar almad avatar honzajavorek avatar kuba-kubula avatar kylef avatar pksunkara avatar zdne avatar

Stargazers

 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  avatar  avatar

apiblueprintorg's Issues

utf-8 is not UTF-8

Copy & pasted a blueprint in safari to editor at apiblueprint.org – the parser refuses to parse the blueprint complaining that it is not UTF-8 (it was lowercase utf-8):

screen shot 2014-07-29 at 6 40 57 am

Note quite annoyingly a modal alert dialoged popped up first an only after that the same message has appeared in the AST area.

It would be good to get rid of the alert popup as well.

Fails to parse every Apiary API Blueprint

If a blueprint starts with metadata (as most of blueprints from documentation, tutorials and apiary do) the /parse endpoint fails to parse them properly

cURL example

Call

curl --include -X POST https://apiblueprintapi.apiary-proxy.com/parser --header "Content-Type:text/vnd.apiblueprint+markdown; version=1A" --header "Accept:application/vnd.apiblueprint.parseresult.raw+json" -d 'Format: 1A\n\n # API Name\n'

Actual Output

{
  "ast": {
    "_version": "2.0",
    "metadata": [
      {
        "name": "Format",
        "value": "1A\\n\\n # API Name\\n"
      }
    ],
    "name": "",
    "description": "",
    "resourceGroups": []
  },
  "warnings": [],
  "error": null,
  "_version": "1.0"
}

Correct Output

{
  "ast": {
    "_version": "2.0",
    "metadata": [
      {
        "name": "FORMAT",
        "value": "1A"
      }
    ],
    "name": "API Name",
    "description": "",
    "resourceGroups": []
  },
  "warnings": [],
  "error": null,
  "_version": "1.0"
}

Regression: Parsing invalid blueprints on apiblueprint.org

Entering an invalid blueprint on apiblueprint.org results in annoying modal pop-up with the JSON instead of a warning message in the gutter of the blueprint edit area as before.

This is a regression issue and it dramatically affects the usability of the interactive editor at apiblueprint.org

Please revert the behavior to its original state.

screen shot 2014-07-21 at 2 26 21 pm

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.