Releases: dealnews/schema-org
Releases · dealnews/schema-org
Release list
Initial Public Release
Improve generated docblocks: array element hints, HTML-to-text comments
@var now hints array element types (Type|Type[]|null instead of Type|array|null) since PHP's lack of generics means the declared property type can't express this itself. Documented as a deliberate, non-enforced limitation in CLAUDE.md/README rather than adding a TypedArray-based collection type, which would need ~135 generated Set classes for a narrow, low-likelihood failure mode.
Also convert rdfs:comment's HTML (schema.org authors comments as HTML) into plain text instead of leaking raw markup/entities into docblocks.
No behavioral change -- every generated class's declared property types are unchanged; only docblock comments differ.
Initial Preview Relesae
Initial commit: Schema.org value objects with JSON-LD emission Generates one PHP class per core Schema.org type from the official vocabulary, built on moonspot/value-objects, with a JsonLdNode base class handling @context/@type/@id and JSON-LD serialization.