From afb5387d9b117e1b13d6af430a8ecd96805c423a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 22 Oct 2025 11:02:53 +0200 Subject: [PATCH] chore: refine GH copilot instructions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/copilot-instructions.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 662ed99e..9b0ad1d8 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -92,11 +92,12 @@ Documentation serves as an operational specification, not narrative prose. ## OCPP-specific conventions - **Command naming**: Follow OCPP standard naming exactly (e.g., RemoteStartTransaction, BootNotification, StatusNotification). +- **Enumeration naming**: Use standard OCPP specifications enumeration names and values exactly (e.g., ConnectorStatusEnumType with values Available, Occupied). Avoid string literals when an enumeration exists. - **Version handling**: Clearly distinguish between OCPP 1.6 and 2.0.x implementations in separate namespaces/files. - **Payload validation**: Validate against OCPP JSON schemas when ocppStrictCompliance is enabled. - **Message format**: Use standard SRPC format: [messageTypeId, messageId, action, payload] or [messageTypeId, messageId, payload]. - **UUID tracking**: Use UUIDs to correlate requests with responses; store pending operations in Maps with UUID keys. -- **Response handling**: Wait for all expected responses before resolving broadcast requests. +- **Response handling**: Ensure to wait for all expected responses before resolving broadcast requests. ## Quality gates -- 2.43.0