Skip to content

Commit

Permalink
Enable swagger endpoint by default (#515)
Browse files Browse the repository at this point in the history
## Describe your changes and provide context
Update default value for `api.swagger` to be `true`. This way new nodes
by default will expose `/swagger/` endpoint.

## Testing performed to validate your change
- unit test
- imported the change to `sei-chain` and ran `seid init` to verify
`app.toml`
  • Loading branch information
dssei authored Jun 10, 2024
1 parent 94abd9a commit 69add60
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/config/config.go
Original file line number Diff line number Diff line change
@@ -259,7 +259,7 @@ func DefaultConfig() *Config {
},
API: APIConfig{
Enable: false,
Swagger: false,
Swagger: true,
Address: "tcp://0.0.0.0:1317",
MaxOpenConnections: 1000,
RPCReadTimeout: 10,
5 changes: 5 additions & 0 deletions server/config/config_test.go
Original file line number Diff line number Diff line change
@@ -36,3 +36,8 @@ func TestOCCEnabled(t *testing.T) {
cfg.BaseConfig.OccEnabled = true
require.True(t, cfg.OccEnabled)
}

func TestDefaultSwaggerConfig(t *testing.T) {
cfg := DefaultConfig()
require.True(t, cfg.API.Swagger)
}

0 comments on commit 69add60

Please sign in to comment.