I search for a schema to validate rule create by o...
# talk-oathkeeper
a
I search for a schema to validate rule create by one of our API, I found https://raw.githubusercontent.com/ory/oathkeeper/v0.40.1/spec/config.schema.json but it validate the config and not the rules, did you have this kind of schema somewhere ?
g
Hi @average-policeman-69189, I think there is not any schema for rules but I have created one which you can try https://github.com/imrushi/oathkeeper-completion/blob/main/rules.schema.json It worked fine for me let me know if you find any bug in this I will update it.
a
Thanks @gifted-salesmen-20057 I did not see your message before, I will try your schema
g
@average-policeman-69189 yes i am also working on Pull Request for this
a
authenticators, mutators
should be array not object, right ?
And `errors`too
g
Oh yes, I just saw that on their example. I will update it.
Try this. I have updated the schema https://github.com/imrushi/oathkeeper/blob/feat-rules-schema/.schema/rules.schema.json Also created the PR for this lets see when it get merged.
a
Copy code
authorizers -> authorizer