Skip to content

Commit 7940ea2

Browse files
strefethenclaude
andcommitted
feat(generate): improve OpenAPI example value generation
Add enum support (string, integer, number, boolean), integer/number min/max/exclusive bounds, field-name heuristics for common string fields (name, phone, address, etc.), additional string formats (password, byte, ipv4, ipv6, hostname), array minItems support with cap at 5, and minLength/maxLength string constraint enforcement. Uses Unicode code point counting for length constraints to prevent panics on non-ASCII field names. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cf3e13a commit 7940ea2

File tree

1 file changed

+367
-20
lines changed

1 file changed

+367
-20
lines changed

0 commit comments

Comments
 (0)