Use Template in Blueprint / MSON API

I am exploring the possibilities of the new Data Structures syntax in the Blueprint API, especially MSON. Is it possible to attach or rather specify something like a pattern (regular expression)? No results were found for this topic.

+4
source share
1 answer

To provide regular expression validation for your data structure, you need to provide a JSON scheme that has this validation rule. For example, for example:

### View a Questions Detail [GET] + Response 200 (application/json) + Attributes + question: `Favourite programming language?` (string) + Schema { "properties": { "question": { "type": "string", "pattern": "^Favourite.*$" } } } 
+4
source

All Articles