Questions tagged [mson]

Markdown Syntax for Object Notation (MSON)

MSON is a plain-text, human and machine readable, description format for describing data structures in common markup formats such as JSON, XML or YAML.

mson github project

34 questions
0
votes
1 answer

Array that can only contain the given types in MSON

How do I specify in MSON that an array should only contain types A, B or C, and not any other types? I've tried + myField (array[A], fixed-type, required) but the JSON schema generated by aglio only requires the first element of the array to be of…
Robin Green
  • 32,079
  • 16
  • 104
  • 187
0
votes
1 answer

API Blueprint - Use Data Strucutres in response, without Attributes

I'm using Apiary to mock out a new API. I'm trying to avoid having to write out all the JSON responses over and over again. If I do that using a + Attributes(user) then it will auto generate a bunch of attributes blocks in the machine panel, which…
Drew Baker
  • 14,154
  • 15
  • 58
  • 97
0
votes
1 answer

Mixed API Blueprint / MSON property

I'm trying to create a data structure object. There are two possible values to one of its properties but they are of mixed type. Some of the time, it may be a number, but some of the time it may be an array of strings. {"collectorNo":…
voldomazta
  • 1,300
  • 1
  • 10
  • 19
0
votes
1 answer

API blueprint MSON to define valid Attribute values?

Consider this excerpt from https://github.com/apiaryio/mson#example-1 ... Example 1 A simple object structure and its associated JSON expression. MSON - id: 1 - name: A green door - price: 12.50 - tags: home, green Let's say I would like to…
Matthew B
  • 133
  • 1
  • 6
1 2
3