apiaryio / api-blueprint

API Blueprint
https://apiblueprint.org
MIT License
8.64k stars 2.14k forks source link

Nested object get syntax error #330

Closed kirkstrobeck closed 8 years ago

kirkstrobeck commented 8 years ago
+ Request (application/json)

    + Attributes (object)

        + intent: (object) - User intent
          + origin: `47.622288,-122.336494` (string) - Lat, Lon (Amazon HQ)

Warning: no value(s) specified

kylef commented 8 years ago

This warning is showing up because there is a colon after intent. The colon is the separator between the key name and a sample value. In this case, there is no sample value and the type is an object.

So the following would work:

+ Request (application/json)
    + Attributes (object)
        + intent (object) - User intent
            + origin: `47.622288,-122.336494` (string) - Lat, Lon (Amazon HQ)