raml-java-parser icon indicating copy to clipboard operation
raml-java-parser copied to clipboard

Pattern is not being enforced in a trait

Open evangelina opened this issue 9 years ago • 2 comments

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

evangelina avatar Aug 03 '16 02:08 evangelina

Traits examples are only validated when the trait is used at the moment

svacas avatar Aug 05 '16 11:08 svacas

I would say this is not a bug and we should close it

machaval avatar Apr 14 '17 00:04 machaval