Skip to content

Commit 9d183f8

Browse files
[QI2-1564] Updated crs for pydantic 2.11.3 (#30)
* [QI2-1564] Updated crs for pydantic 2.11.3 * Updated pydantic to 2.11.3 * Fixed control-software-validator
1 parent 1f3eac8 commit 9d183f8

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

schemas/get_dynamic/reply_success.schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$defs": {
33
"QuantumHardwareDynamicData": {
4+
"additionalProperties": true,
45
"title": "QuantumHardwareDynamicData",
56
"type": "object"
67
}
@@ -29,4 +30,4 @@
2930
],
3031
"title": "Get hardware data reply",
3132
"type": "object"
32-
}
33+
}

schemas/get_static/reply_success.schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"type": "string"
5959
},
6060
"arguments": {
61+
"additionalProperties": true,
6162
"default": {},
6263
"description": "Arguments for the compiler pass",
6364
"title": "Arguments",
@@ -166,4 +167,4 @@
166167
],
167168
"title": "Get hardware data reply",
168169
"type": "object"
169-
}
170+
}

tests/control-software-validator/models/get_dynamic_reply_success.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55

66
from typing import Literal
77

8-
from pydantic import BaseModel, Field
8+
from pydantic import BaseModel, ConfigDict, Field
99

1010

1111
class QuantumHardwareDynamicData(BaseModel):
1212
pass
13+
model_config = ConfigDict(
14+
extra='allow',
15+
)
1316

1417

1518
class GetDynamicReplySuccess(BaseModel):

tests/control-software-validator/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pytest==8.3.5
2-
pydantic==2.10.6
2+
pydantic==2.11.3
33
datamodel-code-generator==0.28.4
44
pyzmq==26.3.0
55
pytest-asyncio==0.25.0

0 commit comments

Comments
 (0)