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

Description of an array object member not parsed #670

Open
opichals opened this issue Feb 12, 2019 · 2 comments
Open

Description of an array object member not parsed #670

opichals opened this issue Feb 12, 2019 · 2 comments
Assignees

Comments

@opichals
Copy link

A description of an array object member is not parsed

ADD - 0056-array-of-object-with-description.apib (based on https://raw.githubusercontent.com/apiaryio/mson-zoo/master/samples/0056-array-of-object-with-description.md):

FORMAT: 1A

# XYZ

# Data Structures

## My Array (array)

- (object) - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.
  - firstName: Jan
  - lastName: Novák

Parsing result

$ ./bin/drafter < 0056-array-of-object-with-description.apib
element: "parseResult"
content:
  -
    element: "category"
    meta:
      classes:
        element: "array"
        content:
          -
            element: "string"
            content: "api"
      title:
        element: "string"
        content: "XYZ"
    attributes:
      metadata:
        element: "array"
        content:
          -
            element: "member"
            meta:
              classes:
                element: "array"
                content:
                  -
                    element: "string"
                    content: "user"
            content:
              key:
                element: "string"
                content: "FORMAT"
              value:
                element: "string"
                content: "1A"
    content:
      -
        element: "category"
        meta:
          classes:
            element: "array"
            content:
              -
                element: "string"
                content: "dataStructures"
        content:
          -
            element: "dataStructure"
            content:
              element: "array"
              meta:
                id:
                  element: "string"
                  content: "My Array"
              content:
                -
                  element: "object"
                  content:
                    -
                      element: "member"
                      content:
                        key:
                          element: "string"
                          content: "firstName"
                        value:
                          element: "string"
                          content: "Jan"
                    -
                      element: "member"
                      content:
                        key:
                          element: "string"
                          content: "lastName"
                        value:
                          element: "string"
                          content: "Novák"

OK. 
@pksunkara pksunkara added the bug label Feb 12, 2019
@pksunkara
Copy link
Contributor

Expected Behaviour

We should see the description in the object element in the Data Structure.

@kylef kylef added the mson label Feb 18, 2019
@tjanc tjanc self-assigned this Feb 20, 2019
@mascheck
Copy link

mascheck commented Feb 5, 2020

Facing same problem after upgrading to drafter 4. Are there any updates on this?

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

5 participants