Code Monkey home page Code Monkey logo

Comments (5)

freezy-sk avatar freezy-sk commented on June 6, 2024

Same problem here with wrong rendering

+ Request Client credentials (application/json)

    + Attributes

        + grant_type: `client_credentials` (string, required)
        + client_id: `88888888-4444-4444-4444-cccccccccccc` (string, required)
        + client_secret: `clientsecret` (string, required)

    + Body

            {
                "grant_type": "client_credentials",
                "client_id": "88888888-4444-4444-4444-cccccccccccc",
                "client_secret": "clientsecret"
            }

screenshot 2015-07-28 12 21 44
screenshot 2015-07-28 12 20 20

from api-blueprint-sublime-plugin.

pksunkara avatar pksunkara commented on June 6, 2024

@danielgtaylor Now that I look at this with fresh eyes, this might not be an issue at all, since underscores in MSON are not allowed and they need to be escaped. If that rule is followed, the highlighter would not make any mistake.

from api-blueprint-sublime-plugin.

zdne avatar zdne commented on June 6, 2024

MSON are not allowed and they need to be escaped

This is true for property names and values. Not for description.

from api-blueprint-sublime-plugin.

jeanregisser avatar jeanregisser commented on June 6, 2024

Same hightlighting issue happens if you have a JSON payload that contains a key that starts with an underscore.

For instance:

## Videos Collection [/videos]

Provides access to all videos.

+ Model (application/json)

    JSON representation of videos

    + Body

            {
                "_pagination":
                {
                    "next": "/videos?offset=7",
                    "total_count": 100
                }
            }

Highlighting is incorrect in sublime text starting from the underscore.

from api-blueprint-sublime-plugin.

xuxucode avatar xuxucode commented on June 6, 2024

any update?

from api-blueprint-sublime-plugin.

Related Issues (18)

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.