Skip to content

Commit

Permalink
Add dart client codegen script (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpritchett authored Mar 27, 2020
1 parent a20903c commit fea3bda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ node_modules

# compiled assets
dist/*
clients/*

# asdf local version selector for node, npm, etc
.tool-versions
Expand Down
9 changes: 9 additions & 0 deletions script/generate-dart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
set -ex

SCHEMA=reference/pulseox-data-collector.v1.json

docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate \
-i /local/${SCHEMA} \
-g dart \
-o /local/clients/dart

0 comments on commit fea3bda

Please sign in to comment.