apiblueprint - Use pattern in API Blueprint / MSON -


i'm investigating possibilities of new data structures syntax in api blueprint, mson. possible attach or rather specify pattern (regex)? don't found on topic.

to provide regex validation data structure need provide json schema has validation rule. example, following:

### view questions detail [get]  + response 200 (application/json)     + attributes         + question: `favourite programming language?` (string)      + schema              {               "properties": {                 "question": {                   "type": "string",                   "pattern": "^favourite.*$"                 }                }             } 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -