Skip to content

Conversation

@fengxsong
Copy link

Summary

Update schema reflection to treat integer fields as string when their json tag includes the ,string option, matching encoding/json behavior.

Motivation

Go’s encoding/json supports ,string to encode numbers as strings. Without this, the generated JSON Schema declares integer while the payload contains string, causing validation issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant