for int64 type is string but format field is not generated
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start with cmd/protoc-gen-openapi/examples/tests/protobuftypes/openapi.yaml around line 446 and inspect the generated schema for int64_value_type. Trace the int64 handling in the protoc-gen-openapi generation path, then regenerate or run the relevant example tests; done means the schema includes type: string and format: int64 for int64 values.
Written by the indexing model from the issue text.
Description
"int64" is intentionally converted as string in spec generation but format field is not generated at all. For other types like enum, when it is converted as string, format field is generated to indicate its true type. Same should be done for int64.
Example:
cmd/protoc-gen-openapi/examples/tests/protobuftypes/openapi.yaml:446
int64_value_type:
type: string
It should be:
int64_value_type:
type: string
format: int64
- Dominant language
- Go
- Stars
- 2.3k
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from google/gnostic
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100