petrochenko-pavel-a / raml-js-parser2-issues

0 stars 0 forks source link

Add additional restrictions on pattern properties #20

Closed VasiliyLysokobylko closed 8 years ago

VasiliyLysokobylko commented 8 years ago

Currently in RAML 1.0 RC1, it is fully valid to declare a pattern property whose regex will match on an existing property name. For example:

Person:
  properties:
    a: string
   [a] : number

This definition is illegal because property with name 'a' will be matched both to normal property and to a pattern property. RC2 should clearly state that this situations are not valid to avoid these conflicts.

VasiliyLysokobylko commented 8 years ago

https://github.com/raml-org/raml-spec/issues/310