'bootstrap_expect' expected type 'int', got unconvertible type 'string', value: '1'
- Dominant language
- Go
- Stars
- 30.1k
- Forks
- 4.6k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 39
Description
#### Overview of the Issue
When using json config, I get `* 'bootstrap_expect' expected type 'int', got unconvertible type 'string', value: '1'`
I am not sure if this is a feature request or a bug report - I understand that I used `bootstrap_expect: "1"` instead of `bootstrap_expect: 1`, but asking if this can be supported.
---
#### Reproduction Steps
### Consul info for both Client and Server
Client info
```
Output from client 'consul info' command here
```
```
Client agent HCL config
```
Server info
```
Output from server 'consul info' command here
```
```
Server agent HCL config
```
### Operating system and Environment details
### Log Fragments
Contributor guide
Research direction
Start by reproducing the JSON configuration error with `bootstrap_expect` set to the string value `"1"`, then trace how that setting is parsed. Define and test the expected behavior for string versus integer values; the issue names no source files or tests, so locating the relevant configuration parsing code is part of the work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100