Skip to content

Commit

Permalink
Add support for python3.11, drop support for python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Saffie committed Sep 22, 2023
1 parent 060fe91 commit b60fe4e
Show file tree
Hide file tree
Showing 6 changed files with 470 additions and 395 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
strategy:
matrix:
version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.version }}
Expand Down
2 changes: 1 addition & 1 deletion ocpp/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import Callable, Dict, Union

from jsonschema import Draft4Validator
from jsonschema import _validators as SchemaValidators
from jsonschema import _keywords as SchemaValidators
from jsonschema.exceptions import ValidationError as SchemaValidationError

from ocpp.exceptions import (
Expand Down
8 changes: 4 additions & 4 deletions ocpp/v20/schemas/BootNotificationRequest_v1p0.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"maxLength": 20
},
"modem": {
"$ref": "#definitions/ModemType"
"$ref": "#/definitions/ModemType"
},
"vendorName": {
"type": "string",
Expand Down Expand Up @@ -67,14 +67,14 @@
"additionalProperties": true,
"properties": {
"chargingStation": {
"$ref": "#definitions/ChargingStationType"
"$ref": "#/definitions/ChargingStationType"
},
"reason": {
"$ref": "#definitions/BootReasonEnumType"
"$ref": "#/definitions/BootReasonEnumType"
}
},
"required": [
"reason",
"chargingStation"
]
}
}
Loading

0 comments on commit b60fe4e

Please sign in to comment.