ory / keto

Open Source (Go) implementation of "Zanzibar: Google's Consistent, Global Authorization System". Ships gRPC, REST APIs, newSQL, and an easy and granular permission language. Supports ACL, RBAC, and other access models.

Home Page:https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=keto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't use schema for json config

dbtek opened this issue · comments

Preflight checklist

Describe the bug

When using json config (instead of yaml) $schema property is not allowed.

Reproducing the bug

  1. Create keto.json with contents:
{
  "$schema": "https://raw.githubusercontent.com/ory/keto/master/.schema/config.schema.json",
  "version": "v0.10.0",
  "log": {
    "level": "debug"
  },
  "namespaces": [],
  "dsn": "memory",
  "serve": {
    "read": {
      "host": "0.0.0.0",
      "port": 4466
    },
    "write": {
      "host": "0.0.0.0",
      "port": 4467
    }
  }
}
  1. Run keto -c keto.json

Relevant log output

The configuration contains values or keys which are invalid:
  ^-- additionalProperties "$schema" not allowed


### Relevant configuration

_No response_

### Version

v0.10.0-alpha.1

### On which operating system are you observing this issue?

Linux

### In which environment are you deploying?

Docker Compose

### Additional Context

_No response_