Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot parse custom ProcedureRequest with custom TimingDt #423
I'm having an issue, where my custom ProcedureRequest cannot be parsed to JSON. I get the following exception:
I have made a reproducible example where I can provoke the exception. Given the following profiles:
And the following main program:
As to what the bug might be, I have an idea:
When the RuntimeDefinitions are defined, a sealAndInitialize method is called to fill out the definition with the necessary Resource or Datatype information so it can be used later by the parsers.
It seems that in RuntimeChildDeclaredExtensionDefinition.java we are aware of this:
But not in RuntimeChildChoiceDefinition, which scheduled in CustomProcedureRequest gets defined as. @jamesagnew Could it be that some of the RuntimeDefinitions simply are missing this guard?