Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

MSON - Members vs. Items vs. Properties #330

Closed
klokane opened this issue May 22, 2015 · 2 comments
Closed

MSON - Members vs. Items vs. Properties #330

klokane opened this issue May 22, 2015 · 2 comments

Comments

@klokane
Copy link
Contributor

klokane commented May 22, 2015

in MSON spec 4.1.2 https://github.com/apiaryio/mson/blob/master/MSON%20Specification.md#421-member-type-separator
is written:

Member Type Separator → Items | Members | Properties
Array Structures - MUST use Items for a Member Type Separator
Enum Structures - MUST use Members for a Member Type Separator
Object Structures - MUST use Properties for a Member Type Separator

But implementation in snowcrash it does not handle strictly:

object

  • allows Properties
  • disallow Memebers && Items

array && enum

  • allows both Members && Items
  • disallow Properties

example for parser https://gist.github.com/klokane/405aa50eaa157b8808d2

Based on discuss with @zdne there is proposal change

MSON Specification 4.2.1

all MUST to SHOULD

Snowcrash Implementation

Accept (optionaly with warning) all variants of Member Type Separator for all types of Stucture types while parsing

@klokane klokane changed the title MSON - Memebers vs. Items vs. Properties MSON - Members vs. Items vs. Properties May 22, 2015
@zdne
Copy link
Contributor

zdne commented May 25, 2015

👍

@abtris
Copy link
Contributor

abtris commented Oct 1, 2018

Migrated to apiaryio/drafter#637

@abtris abtris closed this as completed Oct 1, 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