Skip to content

JsonSchema\Exception for $id #4

@razvanphp

Description

@razvanphp

"$id": "urn:OCPP:Cp:1.6:2020:3:InstallCertificate.req",

The backported messages from 2.0.1 to 1.6 seems to have this problem in the JSON Schema validator, any idea why? If we remove the $id and add title like in the other schemas, it works.

Here is a valid message we receive from OCTT official testing (maybe we should create an unit test for it?)

object(SolutionForest\OcppPhp\Ocpp\v16\Calls\GetLog)#2601 (7) {
  ["messageTypeID"]=>
  int(2)
  ["messageId"]=>
  string(10) "2575884193"
  ["log"]=>
  object(stdClass)#2566 (3) {
    ["remoteLocation"]=>
    string(31) "https://example-server.com/logs"
    ["oldestTimestamp"]=>
    string(20) "2026-05-17T18:05:00Z"
    ["latestTimestamp"]=>
    string(20) "2026-06-07T18:05:00Z"
  }
  ["logType"]=>
  string(11) "SecurityLog"
  ["requestId"]=>
  int(8)
  ["retries"]=>
  int(1)
  ["retryInterval"]=>
  int(1)
}
Image

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