Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 958 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 958 Bytes

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