Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation has violation when defining named example in RAML overlay #360

Closed
wes-goulet opened this issue May 11, 2020 · 2 comments
Closed
Labels
internal issue Internal issue created to track this case

Comments

@wes-goulet
Copy link

  1. use an overlay.raml to add a named example to a Type
  2. use amf-client-js to validate with RAML validation profile
const { results } = await amf.AMF.validate(
    model,
    amf.ProfileNames.RAML,
    amf.MessageStyles.RAML
);

Expected:
No violations (results is empty)

Actual:
example-validation-error violation is present (results has 1 violation present)

I have created a simple repro repo at https://github.com/wes566/amf-named-example-bug-repro

@wes-goulet wes-goulet changed the title Custom validation profile throws violation when defining named example in RAML overlay Validation has violation when defining named example in RAML overlay May 12, 2020
@looseale
Copy link
Contributor

Hi.
We created an internal issue to track this: https://www.mulesoft.org/jira/browse/APIMF-2117

@bulju bulju transferred this issue from another repository Jul 3, 2020
@nschejtman nschejtman added the internal issue Internal issue created to track this case label Jul 7, 2020
@tomsfernandez
Copy link
Contributor

Hi @wes566. This issue was solved with #544. If you are using the JS distribution from NPM you will have to wait until AMF's next version that will be released on Wednesday 29th. Thanks for raising the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal issue Internal issue created to track this case
Projects
None yet
Development

No branches or pull requests

4 participants