I’m trying to use codegen to generate C# classes to interact with the EPS API.
I’ve tried both Swagger Codegen and NSwag, and neither tool produces the correct output. The schema doesn’t seem to match the example given.
For the prepare endpoint, the spec shows that the FHIR bundle’s “entry” property is an array that can only contain “oneOf” the list of possible objects:
entry:
type: array
description: A collection of resources contained within the Bundle.
items:
oneOf:
- type: object
description: MedicationRequest
but the example shows a request with many different types in here. Wouldn’t “anyOf” be correct here?