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

wol-soft / php-json-schema-model-generator-production / 24132333514
24%

Build:
DEFAULT BRANCH: master
Ran 08 Apr 2026 11:11AM UTC
Jobs 1
Files 68
Run time 1min
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

08 Apr 2026 11:09AM UTC coverage: 23.276% (+3.2%) from 20.075%
24132333514

push

github

wol-soft
Serialize using JSON Schema property names; introduce #[Internal] attribute

SerializableTrait:
- Use #[SchemaName] reflection to map PHP property names to original JSON
  Schema names so all serialization output keys match the schema definition
- $except now takes schema names only (breaking change; was PHP attribute names)
- skipNotProvidedPropertiesMap / rawModelDataInput references updated to match
  new generated property names (no leading underscore)
- Fallback path for hand-written classes: removed str_starts_with('_') exclusion;
  #[Internal] is now the sole mechanism for marking properties as non-serializable
- getCustomSerializerMethod cache is now per-class (static::class::property key)
  using array_key_exists, fixing incorrect cache hits when base and subclass
  share a property name but the subclass adds a custom serializer method
- evaluateAttribute: cache serialization capability per class; propagate depth
  budget correctly; handle depth-exhausted after cache population

Internal attribute (new):
- PHPModelGenerator\Attributes\Internal marks a property as excluded from
  serialization; replaces the implicit underscore naming convention
- Static trait properties ($propertySchemaNames, $objectSerializationCapability,
  $customSerializer) are annotated with #[Internal]

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

46 of 71 new or added lines in 2 files covered. (64.79%)

1 existing line in 1 file now uncovered.

135 of 580 relevant lines covered (23.28%)

0.58 hits per line

Uncovered Changes

Lines Coverage ∆ File
23
67.62
-4.05% src/Traits/SerializableTrait.php
2
0.0
src/Attributes/Internal.php

Coverage Regressions

Lines Coverage ∆ File
1
67.62
-4.05% src/Traits/SerializableTrait.php
Jobs
ID Job ID Ran Files Coverage
1 Unit - 24132333514.1 08 Apr 2026 11:11AM UTC 68
23.28
GitHub Action Run
Source Files on build 24132333514
  • Tree
  • List 68
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24132333514
  • 32104ebc on github
  • Prev Build on master (#23927403224)
  • Next Build on master (#24265851945)
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