Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default/Sample with properties indented by 4 spaces #669

Open
opichals opened this issue Feb 12, 2019 · 1 comment
Open

Default/Sample with properties indented by 4 spaces #669

opichals opened this issue Feb 12, 2019 · 1 comment
Labels

Comments

@opichals
Copy link

Default object with properties indented by 4 spaced from the Default denotation parse as the 'default' 'object' element (from https://raw.githubusercontent.com/apiaryio/mson-zoo/master/samples/0060-array-of-object-with-default.md)

FORMAT: 1A
  
# XYZ

# Data Structures

## 0060-array-of-object-with-default (array)

- (object)
  - firstName: Jan (string)
  - lastName: Novák (string)
  - Default
      - firstName: Foo (string)
      - lastName: Bar (string)

Whereas the following explicit - (object) default declaration doesn't parse as the default:

FORMAT: 1A
  
# XYZ

# Data Structures

## 0060-array-of-object-with-default (array)

- (object)
  - firstName: Jan (string)
  - lastName: Novák (string)
  - Default
    - (object)
      - firstName: Foo (string)
      - lastName: Bar (string)
@opichals
Copy link
Author

Also the same indentation problem applies to https://raw.githubusercontent.com/apiaryio/mson-zoo/master/samples/0059-array-of-object-with-samples.md and https://raw.githubusercontent.com/apiaryio/mson-zoo/master/samples/0058-array-of-object-with-sample.md where the Sample properties not having 4 spaces indentation from the denotation would disappear without any warning or anything reported.

@opichals opichals changed the title Sample/Default with properties indented by 4 spaced Default/Sample with properties indented by 4 spaces Feb 12, 2019
@pksunkara pksunkara added the bug label Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants