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

The schema factory does not throw an exception if an annotated directive is not correct #619

Closed
michaelstaib opened this issue Mar 7, 2019 · 1 comment · Fixed by #786
Milestone

Comments

@michaelstaib
Copy link
Member

Describe the bug
The schema factory does not throw an exception if the specified directive is not correct

type Query @authorize {
    estimativas: [Estimativa!]! @authorize(role: "TESTE")
    estimativa(id: ID!): Estimativa! @authorize(roles: "PERF_ESTIMADOR")
    nucleosAtivos: [NucleoEstimativa!]! @authorize(roles: "PERF_ESTIMADOR")
    empregado(chave: String!): Empregado @authorize(roles: "PERF_ESTIMADOR")
}

in the above example we have a type @authorize(role: "TESTE").

To Reproduce
See above example.

Expected behavior
A schema error should have been thrown.

@michaelstaib michaelstaib added this to the 9.0.0 milestone Mar 7, 2019
@michaelstaib michaelstaib changed the title The schema factory does not throw an exception if the specified directive is not correct The schema factory does not throw an exception if an annotated directive is not correct Mar 7, 2019
@michaelstaib
Copy link
Member Author

this one is now fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant