OpenAPI Validation Fixes

OpenAPI validation seems to have become stricter about checking for None defaults
in parameters that don't allow None. I have
modified two things as a result:

1. StageTypeProperty (used to pick between SangaStage and SangaDeltaStage)
now defaults to SangaStage (which is the
original behaviour anyway)
2. It is now allowed to pass x,y,z=None when making a move - this is the same as
not passing the respective argument, so the
function already correctly handled this case.
This commit is contained in:
Richard Bowman 2023-03-22 08:58:04 +00:00
parent 4b73fd82f6
commit 1f558bbeb7
4 changed files with 5 additions and 6 deletions

View file

@ -30,7 +30,7 @@ import logging
import time
# Type hinting
from typing import BinaryIO, Tuple, Union, Optional
from typing import BinaryIO, Optional, Tuple, Union
import numpy as np