Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API v2 #57

Merged
merged 31 commits into from
May 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
437e2b1
Add first haskell implementation: outputs types as the current one does
f-f Mar 26, 2019
95bcf6d
Generate defaults too
f-f Mar 29, 2019
3e4ac82
Implement #46, #49, #54
f-f Mar 30, 2019
e0a654a
Remove problematic objects
f-f Mar 30, 2019
b709a28
Split into several modules
f-f Mar 30, 2019
5ddd425
Read file from disk instead of fetching it
f-f Mar 30, 2019
5f417ad
Remove package.yaml and set version bounds
f-f Mar 30, 2019
ee0430c
Add some comments
f-f Mar 31, 2019
af56740
Merge branch 'master' into haskell-implementation
f-f Apr 1, 2019
bd6af8c
Fix logic for requiring keys of records
f-f Apr 1, 2019
d85f05d
Add a simple deployment
f-f Apr 1, 2019
81b7567
Remove weird module
arianvp Apr 1, 2019
d06d100
Nixify the haskell build
arianvp Apr 1, 2019
d888d16
Fix check-source
arianvp Apr 1, 2019
232c40d
Comment out building of examples for now
arianvp Apr 1, 2019
cda59b9
Move dhall-kubernetes-generator to own subfolder
arianvp Apr 1, 2019
8e8b8c1
Fix build
arianvp Apr 1, 2019
9d3149b
Remove convert.py script
arianvp Apr 1, 2019
0a4f0b8
Add deployment example
f-f Apr 1, 2019
eafe9f2
Update examples to new API 🎉🎉
f-f Apr 1, 2019
be3e4b0
Remove api folder
f-f Apr 1, 2019
e0cfdb2
Fix #47: remove cyclic imports
f-f Apr 2, 2019
5183695
Merge branch 'master' into haskell-implementation
f-f Apr 2, 2019
0d8bff7
Rewrite readme for new examples
f-f Apr 2, 2019
0bb3316
Document --documents pattern
f-f Apr 2, 2019
0d09a93
Freeze big records and unions too
f-f Apr 2, 2019
d747296
Fix link
f-f Apr 2, 2019
a535564
Freeze types typesUnion and defaults
arianvp Apr 2, 2019
d1626c0
Update to dhall-1.22
f-f Apr 30, 2019
2356ec5
Update hashes
f-f Apr 30, 2019
6db1789
Merge branch 'master' into haskell-implementation
f-f May 1, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
.stack-work
swagger.json
.stylish-haskell.yaml
/result
/result-*
tmp
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
.PHONY: install build check default

default: build
README.md: docs/README.md.dhall
./scripts/build-readme.sh

build: README.md
mkdir -p types default
./scripts/convert.py "${OPENAPI_SPEC}"
dhall-kubernetes-generator "${OPENAPI_SPEC}"

dhall freeze --all --inplace ./types.dhall
dhall freeze --all --inplace ./typesUnion.dhall
dhall freeze --all --inplace ./defaults.dhall
check: build
LC_ALL=en_US.UTF-8 ./scripts/check-source.py
mkdir -p tmp
LC_ALL=en_US.UTF-8 ./scripts/build-examples.py tmp
install: build
cp -r types default "${out}"
cp -r types defaults "${out}"
cp types.dhall defaults.dhall typesUnion.dhall "${out}"
cp README.md "${out}"

Loading