raml-java-parser
raml-java-parser copied to clipboard
Pattern is not being enforced in a trait
The following RAML is not returning an ERROR:
#%RAML 1.0
title: Test named parameters
types:
dept_code:
pattern: ^\d+\-\w+$
traits:
chargeable:
headers:
X-Dept:
type: dept_code[]
examples:
one_dept:
- 230-OCTO
- InvalidHere
Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-127
Traits examples are only validated when the trait is used at the moment
I would say this is not a bug and we should close it