Skip to content

Add const validation keyword#46

Open
crmne wants to merge 1 commit into
issue-33-exclusive-numeric-boundariesfrom
issue-34-const-validation-keyword
Open

Add const validation keyword#46
crmne wants to merge 1 commit into
issue-33-exclusive-numeric-boundariesfrom
issue-34-const-validation-keyword

Conversation

@crmne

@crmne crmne commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Closes #34

Summary

  • Add const: support to primitive schema builders
  • Preserve explicit false and nil const values
  • Cover string, number, integer, boolean, and null schemas with specs

Verification

  • bundle exec rake

@codecov

codecov Bot commented Jun 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.15385% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 94.75%. Comparing base (f70d91f) to head (7ab8ada).

Files with missing lines Patch % Lines
lib/ruby_llm/schema/dsl/schema_builders.rb 96.15% 1 Missing ⚠️
Additional details and impacted files
@@                            Coverage Diff                            @@
##           issue-33-exclusive-numeric-boundaries      #46      +/-   ##
=========================================================================
- Coverage                                  94.79%   94.75%   -0.05%     
=========================================================================
  Files                                         12       12              
  Lines                                        365      381      +16     
  Branches                                      73       75       +2     
=========================================================================
+ Hits                                         346      361      +15     
- Misses                                        19       20       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@crmne crmne force-pushed the issue-34-const-validation-keyword branch from 0953abf to 7ab8ada Compare June 6, 2026 10:31
@crmne crmne changed the base branch from main to issue-33-exclusive-numeric-boundaries June 6, 2026 10:31
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.

Add const validation keyword

1 participant