Skip to content

Commit

Permalink
fix(config): relax repo config validation, make rpc work
Browse files Browse the repository at this point in the history
qri config set over RPC wasn't working properly thanks to an issue with middleware. We've long since moved away from needing repo middleware in favour of different types of repo implementations, so I've just relaxed the requirement that middleware be present & specified.
  • Loading branch information
b5 committed Sep 3, 2019
1 parent 7d2248a commit 0d16d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ func (cfg Repo) Validate() error {
"title": "Repo",
"description": "Config for the qri repository",
"type": "object",
"required": ["middleware", "type"],
"required": ["type"],
"properties": {
"middleware": {
"description": "Middleware packages that need to be applied to the repo",
"type": "array",
"type": ["array", "null"],
"items": {
"type": "string"
}
Expand Down

0 comments on commit 0d16d32

Please sign in to comment.