• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wol-soft / php-json-schema-model-generator
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: fix/issue-129-enum-type-check-validator
DEFAULT BRANCH: master
Repo Added 12 Oct 2018 08:31AM UTC
Files 162
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fix/issue-129-enum-type-check-validator
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 0.1.0
  • 0.10.0
  • 0.10.1
  • 0.11.0
  • 0.11.1
  • 0.12.0
  • 0.13.0
  • 0.14.0
  • 0.14.1
  • 0.15.0
  • 0.15.1
  • 0.16.0
  • 0.17.0
  • 0.18.0
  • 0.19.0
  • 0.2.0
  • 0.20.0
  • 0.21.0
  • 0.21.1
  • 0.21.2
  • 0.21.3
  • 0.21.4
  • 0.21.5
  • 0.21.6
  • 0.21.7
  • 0.21.8
  • 0.22.0
  • 0.22.1
  • 0.23.0
  • 0.23.1
  • 0.23.2
  • 0.23.3
  • 0.23.4
  • 0.23.5
  • 0.24.0
  • 0.24.1
  • 0.24.2
  • 0.25.0
  • 0.25.1
  • 0.26.1
  • 0.26.2
  • 0.3.0
  • 0.3.1
  • 0.4.0
  • 0.5.0
  • 0.6.0
  • 0.7.0
  • 0.8.0
  • 0.9.0
  • 65-recursive-reference-resolving
  • 70-filter-in-composition
  • AddOptionToDefaultArraysToEmptyArray
  • AdvancedFilter
  • BaseProcessor
  • BuilderClassPostProcessor
  • CompositionValidationOnMutableObjects
  • FormatValidation
  • JsonSchemaDraftTestSuite
  • MoveCI
  • NestedObjectException
  • OptimizeMergedProperties
  • PatternProperties
  • PerformanceImprovements
  • PostProcessor
  • PostProcessorHooks
  • ReworkExceptions
  • SchemaHooks
  • SkipFilterAfterTransformingFilterIfTransformationFails
  • ThrowExceptionFromNestedModel
  • additionalProperties
  • attributes
  • booleanSchemas
  • chore/phpunit-13-upgrade
  • debug
  • drafts
  • enumPostProcessor
  • feat/composition-required-promotion
  • filter-composition-ordering
  • fix/issue-101
  • fix/issue-110
  • fix/issue-129-enum-type-check-validator
  • fix/issue-98
  • implicitNullableConfiguration
  • improveRefResolving
  • issue72_nestedComposition
  • issue77_dynamicProperty
  • issue79_CombinedRefAndObjectDefinition
  • jsonSchemaDraft7
  • master
  • modernizeCode
  • optionalConst
  • patch-1
  • php82tessting
  • refImprovements
  • renameRawModelDataInput
  • supportNumericProperties
  • typos
  • useInNestedReferences

24 May 2026 10:50PM UTC coverage: 98.555% (+0.001%) from 98.554%
26374991150

Pull #136

github

wol-soft
Fix EnumPostProcessor stripping type-check validators alongside enum validators

When a property declared both "type": "string" (or "type": "integer") and
"enum", the EnumPostProcessor only removed the EnumValidator but left the
TypeCheckValidator (is_string/is_int check) in place. Passing a valid enum
instance to the setter then incorrectly triggered that type check and threw
InvalidTypeException.

Fix: also strip TypeCheckInterface validators when the enum post-processor
takes over a property, since the enum filter handles conversion and the
UnitEnum guard covers type safety.

Fixes #129

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pull Request #136: Fix EnumPostProcessor

3 of 3 new or added lines in 1 file covered. (100.0%)

4773 of 4843 relevant lines covered (98.55%)

644.33 hits per line

Relevant lines Covered
Build:
Build:
4843 RELEVANT LINES 4773 COVERED LINES
644.33 HITS PER LINE
Source Files on master
  • Tree
  • List 162
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
26374991150 fix/issue-129-enum-type-check-validator Fix EnumPostProcessor stripping type-check validators alongside enum validators When a property declared both "type": "string" (or "type": "integer") and "enum", the EnumPostProcessor only removed the EnumValidator but left the TypeCheckValidator... Pull #136 24 May 2026 10:52PM UTC wol-soft github
98.55
26374741919 booleanSchemas Merge 95246e9e8 into cf5b7af2c Pull #135 24 May 2026 10:40PM UTC web-flow github
98.64
26230600841 master underscore names for internal properties to avoid accidental collision with JSON properties push 21 May 2026 01:58PM UTC wol-soft github
98.55
26169686326 filter-composition-ordering Close filter/composition coverage gaps: remove dead code, add targeted tests - Remove unreachable !is_array() guards in CompositionBranchClassifier: the not branch always receives an array (NotValidatorFactory wraps it), and non-array allOf/a... Pull #128 20 May 2026 02:38PM UTC wol-soft github
98.48
26158351968 filter-composition-ordering Fix if/then/else branch conflict detection for null-typed and per-branch checks IfValidatorFactory previously required both then and else branches to conflict with the parent before throwing, and stripped null from parent type names — so a null-t... Pull #128 20 May 2026 11:03AM UTC wol-soft github
98.47
25723523596 master Merge pull request #126 from wol-soft/jsonSchemaDraft7 Json schema draft7 push 15 May 2026 11:09PM UTC web-flow github
98.55
25945556987 filter-composition-ordering Merge ce9326ed2 into fddd87e19 Pull #128 15 May 2026 11:05PM UTC web-flow github
98.0
25945490262 filter-composition-ordering Split FilterTest into focused test classes under tests/Filter/ The monolithic Basic/FilterTest (~3050 lines) is replaced by eight focused classes under tests/Filter/, each with its own schema directory: - FilterConfigurationTest — registration,... push 15 May 2026 11:03PM UTC wol-soft github
98.0
25722971064 jsonSchemaDraft7 dependency Pull #126 12 May 2026 08:36AM UTC Enno Woortmann github
98.55
25700642152 jsonSchemaDraft7 Add content validator registry for contentMediaType/contentEncoding (Draft 7 Phase 5) Introduces an opt-in registry on GeneratorConfiguration that lets users register ContentValidatorInterface implementations keyed by media type and/or encoding. ... Pull #126 11 May 2026 10:19PM UTC Enno Woortmann github
98.55
See All Builds (689)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc