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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants