Skip to content

SolutionForest\OcppPhp\Ocpp\v16\CallResults\GetCompositeSchedule::$chargingSchedule of type ?object #5

@razvanphp

Description

@razvanphp

With this payload from a real station:

[3,"4202995311",{"status":"Accepted","connectorId":1,"scheduleStart":"2026-05-23T09:35:35Z","chargingSchedule":{"duration":7200,"startSchedule":"2026-05-23T09:35:35Z","chargingRateUnit":"A","chargingSchedulePeriod":[{"startPeriod":0,"limit":-1,"numberPhases":-1}]}}]

I think json_decode is making this an array, how should we handle those cases? I would love to keep the schemas as they are published, without manual changes.

Thank you!
R

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions