Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Unrecognized block descriptions #330

Open
Baggz opened this issue May 26, 2016 · 6 comments
Open

Unrecognized block descriptions #330

Baggz opened this issue May 26, 2016 · 6 comments

Comments

@Baggz
Copy link

Baggz commented May 26, 2016

Hey,

Seems like the block description in this case is ignored by Drafter.

$ drafter -v                        
v2.3.1
# Data Structures

# My Array (array)

- (enum)

    Bzzzzzz!

    - Items
      - 1
      - 2
{
  "element": "parseResult",
  "content": [
    {
      "element": "category",
      "meta": {
        "classes": [
          "api"
        ],
        "title": ""
      },
      "content": [
        {
          "element": "category",
          "meta": {
            "classes": [
              "dataStructures"
            ]
          },
          "content": [
            {
              "element": "dataStructure",
              "content": [
                {
                  "element": "array",
                  "meta": {
                    "id": "My Array"
                  },
                  "content": [
                    {
                      "element": "enum",
                      "content": [
                        {
                          "element": "string",
                          "content": "1"
                        },
                        {
                          "element": "string",
                          "content": "2"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
@Baggz Baggz added the bug label May 26, 2016
@Baggz
Copy link
Author

Baggz commented May 26, 2016

Another example.

# Data Structures

# My Array (array)

- foo (string)

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

@Baggz
Copy link
Author

Baggz commented May 26, 2016

This one doesn't work as well.

# Data Structures

# My Array (array)

- street

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

- city

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

- state

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

@Baggz
Copy link
Author

Baggz commented May 27, 2016

Another example.

# Data Structures

# My Array (array)

- (string)

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

- (string)

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

- (string)

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

@jmatsushita
Copy link

Am I missing something or even a top level description:

# My Array (array)

This is a top level block description

 - (string)

Doesn't show up in the output?

@kylef
Copy link
Member

kylef commented Dec 20, 2016

@jmatsushita that case does in Drafter, but I think you mean:

# My Array (array)

This is a top level block description

## Items

 - (string)

@jmatsushita
Copy link

Yes indeed @kylef !

kylef added a commit to apiaryio/fury-adapter-apib-serializer that referenced this issue Jan 24, 2017
JackuB added a commit to apiaryio/attributes-kit that referenced this issue Mar 31, 2017
kylef added a commit to apiaryio/api-elements.js that referenced this issue Dec 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants