Skip to content

feat: add Enum const to JsonSchema#73

Merged
IvanMurzak merged 1 commit into
mainfrom
feat/json-schema-enum-const
Mar 25, 2026
Merged

feat: add Enum const to JsonSchema#73
IvanMurzak merged 1 commit into
mainfrom
feat/json-schema-enum-const

Conversation

@IvanMurzak

@IvanMurzak IvanMurzak commented Mar 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add Enum constant ("enum") to JsonSchema.Consts for consistent JSON Schema property name references
  • Disambiguate System.Enum.GetValues call in JsonSchema.Internal to avoid conflict with the new Enum const field

Test plan

  • Verify build passes (dotnet build --configuration Release)
  • Verify existing tests pass (dotnet test --configuration Release)
  • Confirm enum schema generation still works correctly

🤖 Generated with Claude Code

Add "enum" constant string to JsonSchema.Consts for consistent schema
property references. Disambiguate System.Enum.GetValues call to avoid
conflict with the new Enum const field.
@IvanMurzak IvanMurzak self-assigned this Mar 25, 2026
@IvanMurzak IvanMurzak added the enhancement New feature or request label Mar 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

    2 files      2 suites   9m 3s ⏱️
1 355 tests 1 355 ✅ 0 💤 0 ❌
2 710 runs  2 710 ✅ 0 💤 0 ❌

Results for commit e2abeca.

@IvanMurzak IvanMurzak merged commit 7669cfa into main Mar 25, 2026
2 checks passed
@IvanMurzak IvanMurzak deleted the feat/json-schema-enum-const branch March 25, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant