OpenAPI Spec
# support
k
We are trying to generate golang model code using the openapi spec you are exposing via /openapi.json. We have succeeded but had to configure the generator to skip validations and ignore some warnings: Multiple models are undefined: -Unused model: BulkDataExport_Deleted -Unused model: Agent_Setting -Unused model: AccessPolicy_Resource_WriteCriteria -Unused model: UserConfiguration_Search -Unused model: uuid -Unused model: ProjectMembership_Access_Parameter -Unused model: ProjectMembership_Access -Unused model: Element -Unused model: UserConfiguration_Option -Unused model: BulkDataExport_Error -Unused model: Project_Site -Unused model: BulkDataExport_Output -Unused model: UserConfiguration_Menu -Unused model: Project_Secret -Unused model: AccessPolicy_Resource -Unused model: AccessPolicy_IpAccessRule -Unused model: Agent_Channel -Unused model: UserConfiguration_Menu_Link openapi version is set to OpenAPI 3.1.0 but the title and description mention OpenAPI 3.0. The spec parses as 3.1 so I'm assuming it's just outdated text. The version in the spec says 1.0.5 - can we expect that this will be bumped according so semver? (ie. backwards breaking == major bump, new features == minor, bug == patch). In other words, can we rely on this version to be used as part of our code generation jobs? Is there any way for you to downgrade this to OpenAPI 3.0? We are generating code for golang and it seems like the only one that works with 3.1.0 is the Java openapi-generator.
Bumping this in case there is any information that can be shared 🙂 thanks team
Happy to contribute the go client back to the ecosystem afterwards as well if we can get this up and running
@reshma Was wondering if there was any update on this post office hours meeting we had?
r
sorry Kevin ... no progress yet on our side on this item.
k
Understood, we'll proceed with workaround
r
Would you mind filing an issue ?
k
We ended up writing our own lib here based on Google's FHIR implementation to interact with Medplum 🫡 so all set I believe
177 Views