raml-org / raml-js-parser-2

(deprecated)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Traits in included files broke validation

nimblecrm opened this issue · comments

Author of raml2html asked me to create the issue here.

When I use some of my traits in any of included files, it brokes raml2html validation. I attached the minimal example that is reproducing the problem.

Api contains errors.

INHERITING_UNKNOWN_TYPE: Inheriting from unknown type (resource.raml:5:8)
  ERROR_IN_INCLUDED_FILE: Error in the included file: Inheriting from unknown type (api.raml:16:2)

Commenting is part in resource.raml fixes it. Same for manual copy-pasting of resource.raml content.

str.zip

Thanks for you report, @nimblecrm !

The fix will be released in 1.1.49

Regards,
Konstantin Sviridov