Skip to content

Commit

Permalink
update schemas to match pydantic 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Nov 13, 2023
1 parent 594996c commit 3cef947
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
11 changes: 10 additions & 1 deletion tests/samples/schemas/multiple.ibek.ioc.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,16 @@
"entities": {
"description": "List of entities this IOC instantiates",
"items": {
"anyOf": [
"discriminator": {
"mapping": {
"module.AllObject": "#/$defs/module_AllObject",
"object_module.Consumer": "#/$defs/object_module_Consumer",
"object_module.ConsumerTwo": "#/$defs/object_module_ConsumerTwo",
"object_module.RefObject": "#/$defs/object_module_RefObject"
},
"propertyName": "type"
},
"oneOf": [
{
"$ref": "#/$defs/object_module_RefObject"
},
Expand Down
10 changes: 9 additions & 1 deletion tests/samples/schemas/objects.ibek.ioc.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,15 @@
"entities": {
"description": "List of entities this IOC instantiates",
"items": {
"anyOf": [
"discriminator": {
"mapping": {
"object_module.Consumer": "#/$defs/object_module_Consumer",
"object_module.ConsumerTwo": "#/$defs/object_module_ConsumerTwo",
"object_module.RefObject": "#/$defs/object_module_RefObject"
},
"propertyName": "type"
},
"oneOf": [
{
"$ref": "#/$defs/object_module_RefObject"
},
Expand Down
9 changes: 8 additions & 1 deletion tests/samples/schemas/utils.ibek.ioc.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,14 @@
"entities": {
"description": "List of entities this IOC instantiates",
"items": {
"anyOf": [
"discriminator": {
"mapping": {
"epics.InterruptVectorVME": "#/$defs/epics_InterruptVectorVME",
"epics.InterruptVectorVME2": "#/$defs/epics_InterruptVectorVME2"
},
"propertyName": "type"
},
"oneOf": [
{
"$ref": "#/$defs/epics_InterruptVectorVME"
},
Expand Down

0 comments on commit 3cef947

Please sign in to comment.