apiaryio / api-blueprint

API Blueprint
https://apiblueprint.org
MIT License
8.64k stars 2.14k forks source link

Property Member Constraints #359

Closed zatziky closed 7 years ago

zatziky commented 7 years ago

Is there a way how to specify limits, ranges and other constraints to property members?

From Attributes I couldn't find a way.

Particularly, I would to set an upper limit on a text length:

### TextContent (Content)

+ type: "text"

+ payload (string, MAX_LENGTH:320) - Text to be sent. 
w-vi commented 7 years ago

Unfortunately not yet, there is a ongoing discussion (https://github.com/apiaryio/mson/issues/43) but nothing has been implemented.

Related question: https://github.com/apiaryio/mson/issues/72

Closing this one in favor of others.