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

apache - setting document root in antoher partition on ubuntu -

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

python - pip install -U PySide error -