Commit Graph

129 Commits

Author SHA1 Message Date
Thomas Scholtes
491463a867
fixup! Default kind and apiVersion values 2018-07-08 13:53:49 +02:00
Thomas Scholtes
09ed3bb6a1
Add script that checks generated source files 2018-07-08 13:38:11 +02:00
Thomas Scholtes
1feeeac87a
Default kind and apiVersion values
The `kind` and `apiVersion` properties of a Kubernetes resource are
already implicitly determined by the resource. We adjust the default
functions so that they do not require the `kind` and `apiVersion`
parameters for resources.

We obtain the implied values by inspecting the
`x-kubernetes-group-version-kind` key from the OpenAPI schema for that
resource. The [Kubernetes OpenAPI Spec Readme][1] explains how these
values determine the resource values.

[1]: https://github.com/kubernetes/kubernetes/blob/master/api/openapi-spec/README.md#x-kubernetes-group-version-kind
2018-07-08 11:34:03 +02:00
Thomas Scholtes
6f4b1b32fd
Regenerate code from OpenAPI spec 2018-07-08 11:28:21 +02:00
Fabrizio Ferrai
dd2515c88a
Merge pull request #9 from dhall-lang/f-f/add-readme
Add some documentation and examples
2018-06-04 12:57:29 +03:00
Fabrizio Ferrai
89edbdca9d Remove outdated examples 2018-06-02 23:44:15 +03:00
Fabrizio Ferrai
afa1b88e49 Rewrite readme adding some examples 2018-06-02 23:43:49 +03:00
Fabrizio Ferrai
03c99940c9 Regenerate defaults and types 2018-06-01 11:36:53 +02:00
Fabrizio Ferrai
5654473c89 Fix incorrect generation of lambdas with no arguments 2018-06-01 11:36:53 +02:00
Fabrizio Ferrai
81988ee413 Correctly generate List types 2018-06-01 11:36:53 +02:00
Fabrizio Ferrai
ae66b56518 Fix record types and empty records formatting 2018-05-27 19:55:47 +02:00
Fabrizio Ferrai
7c895cea21 Add types to generated default records 2018-05-27 19:55:47 +02:00
Fabrizio Ferrai
65b1339651 Make the required parameters fields of a record instead of fn args 2018-05-27 19:55:47 +02:00
Fabrizio Ferrai
01d8ec40e3 Start generating default values for all models 2018-05-27 19:55:47 +02:00
Fabrizio Ferrai
7b76a392a7 Move all types to the aptly named folder 2018-05-27 19:55:47 +02:00
Fabrizio Ferrai
8e7bd7a255 Regenerate all types 2018-05-27 19:55:47 +02:00
Fabrizio Ferrai
3bc83febc2 Make script executable 2018-05-27 19:55:47 +02:00
Fabrizio Ferrai
6c11202b83 Properly format records 2018-05-27 19:55:47 +02:00
Fabrizio Ferrai
368cd558be Switch from assigning generic types to association lists for objects
See https://github.com/dhall-lang/dhall-json/pull/29
2018-05-27 19:55:47 +02:00
Fabrizio Ferrai
8056257892 Revert back to generating a flat directory 2018-05-27 19:55:47 +02:00
Arian van Putten
a173182362
Create LICENSE 2018-05-27 19:55:07 +02:00
Arian van Putten
9e921e0298 Directories 2018-02-02 02:25:10 +01:00
Arian van Putten
6283642405 Fix for single valued types 2018-02-02 02:12:14 +01:00
Arian van Putten
5779dc3f36 Add always required fields 2018-02-02 01:42:42 +01:00
Arian van Putten
0a86aa15c2 Update to latest API version 2018-02-02 01:33:30 +01:00
Arian van Putten
2db0eb3029 Add untyped example 2017-09-20 17:24:48 +02:00
Arian van Putten
0f26608f50 Readme 2017-09-20 16:56:49 +02:00
Arian van Putten
b8f861f88d Add ugly example 2017-09-20 16:55:45 +02:00
Arian van Putten
d7f040f2b3 Dhall kube 2017-09-20 15:21:58 +02:00