fhir-to-openapi

module
v0.0.0-...-c0f3d90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2020 License: Apache-2.0

README

Generation FHIR R4 OpenAPI 3 specification

GoDev

Generation FHIR 4 OpenAPI 3 specification based on http://hl7.org/fhir/.

Generation

# 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

License

Apache 2.0

Directories

Path Synopsis
cmd
fhir-to-openapi command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL