Generation FHIR 4 OpenAPI 3 specification based on http://hl7.org/fhir/.
# Install fhir-to-openapi
go get -u github.com/gotidy/fhir-to-openapi/cmd/fhir-to-openapi/...
# Generate OpenAPI 3 specification as YAML file.
fhir-to-openapi -i ./fhir.schema.json -o ./fhir.schema.oapi.yaml
# Or as JSON file.
fhir-to-openapi -i ./fhir.schema.json -o ./fhir.schema.oapi.json
or
git clone https://github.com/gotidy/fhir-to-openapi.git
cd fhir-to-openapi
# Generate OpenAPI 3 specification.
make run
# That variant generate OpenAPI 3 specification and generate Go Client and Server Code (uses https://github.com/deepmap/oapi-codegen).
make run-gen