Commit Graph

102 Commits

Author SHA1 Message Date
Alex Biehl
90361b3432 Support weird cookie trick 2022-06-21 11:59:16 +02:00
Alex Biehl
8f826bb667 Refer to HTTP.Types.Status directly instead of using toENum 2022-06-20 21:21:38 +02:00
Christian Gill
944cc40688
Merge pull request #27 from scarf-sh/support/update-logo
Update logo
2022-06-20 12:18:59 +02:00
gillchristian
27804d9f64 Update logo 2022-06-20 12:10:34 +02:00
Avi Press
0dee24efe1 Update README.md 2022-06-13 23:08:01 +02:00
Christian Gill
2c4c9f216a
Merge pull request #25 from scarf-sh/support/example 2022-06-13 15:16:59 +02:00
gillchristian
bd46e7282a Update CLI help 2022-06-13 14:32:11 +02:00
gillchristian
728ecd13b9 Add logo 2022-06-13 14:13:02 +02:00
gillchristian
291e7f7ccb Sync default.nix with tie.cabal
Using cabal2nix
2022-06-13 13:37:38 +02:00
gillchristian
2989047d7e Update readme.md 2022-06-13 13:36:59 +02:00
Alex Biehl
0af3459052 INLINABLE pragma for application
INLINABLE makes sure to include the applications unfolding into
the haskell interface (despite it's possibly large size). It allows
users to specialize the function at use-site:

```
import Scarf.Public.Api (application)

{-# SPECIALIZE application @AppIO #-}

```
2022-06-13 11:22:23 +02:00
Alex Biehl
764e907252 INLINABLE pragma for application
INLINABLE makes sure to include the applications unfolding into
the haskell interface (despite it's possibly large size). It allows
users to specialize the function at use-site:

```
import Scarf.Public.Api (application)

{-# SPECIALIZE application @AppIO #-}

```
2022-06-13 11:19:19 +02:00
Alex Biehl
05add8332c Move Response.hs file to template file 2022-06-13 11:19:06 +02:00
gillchristian
3b6a8d5801 Update README.md 2022-06-12 18:13:04 +02:00
Alex Biehl
24e28b6c2d Remove some superflouos whitespace from generated code 2022-06-12 18:03:05 +02:00
Alex Biehl
51c5a0a8d4 CI: Test with ghc-9.2.3 2022-06-12 14:58:07 +02:00
Alex Biehl
db58a7c924 README update 2022-06-12 14:58:07 +02:00
Alex Biehl
fb2b6e701b Default to free form object in case of missing shema type annotation 2022-06-12 14:58:07 +02:00
Alex Biehl
a84d0b4e00 Support generating arrays without explicit items 2022-06-12 14:58:07 +02:00
Alex Biehl
b0f9c87627 Use Relude from Hackage again 2022-06-12 14:58:07 +02:00
Alex Biehl
270bca4199 Cabal file updates 2022-06-12 14:58:07 +02:00
Alex Biehl
1e888e29ae Support schema-less response bodies 2022-05-23 21:28:45 +02:00
Alex Biehl
8323ff0fe1 Support code generation for unknown media types 2022-05-23 20:55:29 +02:00
Alex Biehl
aa67163680 Support for multiple response types 2022-05-23 20:31:17 +02:00
Alexander Biehl
d84aa4a16d
Custom Relude version for ghc-9.2.2 support 2022-05-06 14:19:31 +02:00
Alexander Biehl
d374296eda
Update ci.yml 2022-04-19 08:57:36 +02:00
Alex Biehl
caa0f37e14 Respect discriminator when deserializing oneOf types 2022-04-19 08:51:56 +02:00
Alex Biehl
d03e3b277c CamelCasify Enum constructors 2022-04-05 08:01:56 +02:00
Alexander Biehl
27dc779f9d
Merge pull request #16 from scarf-sh/fix/names/escape-pattern
Escape pattern keyword when used as name
2022-04-01 16:57:50 +02:00
gillchristian
308a8aba66 Escape pattern keyword when used as name 2022-04-01 16:18:49 +02:00
Alex Biehl
9977dbbb7f Accept test suite output 2022-03-24 18:46:28 +01:00
Alexander Biehl
067b5d5af9
Update openapi3 sha256 for nix 2022-03-24 18:40:14 +01:00
Alex Biehl
d08d9a0473 x-tie-haskell-type extension 2022-03-24 17:29:49 +01:00
Alex Biehl
f3db4e89ff Consider path dependencies too 2022-03-16 07:14:49 +01:00
Alex Biehl
d2d8be2b75 Streamline response constructor generation 2022-03-14 08:47:01 +01:00
Alex Biehl
014652191f Streamline api call generation 2022-03-13 20:30:37 +01:00
Alex Biehl
8d43265515 Sort responses by response code 2022-03-13 18:08:06 +01:00
Alex Biehl
489ca65573 Show which reference is missing 2022-03-11 14:31:14 +01:00
Alexander Biehl
0d261c7f87
Merge pull request #14 from scarf-sh/readme-quickstart-guide
readme - quick start guide
2022-03-11 08:10:25 +01:00
Alex Biehl
5f94b4ce3a Deduplicate import statements in Api.hs 2022-03-11 08:03:22 +01:00
Alex Biehl
1e0b5dbc5c Correctly handle optional headers 2022-03-10 08:33:05 +01:00
Alex Biehl
253dfc5f70 Make response headers work properly 2022-03-10 07:32:17 +01:00
Alex Biehl
30e371963d Treat allOf and anyOf special in dependency analysis 2022-03-09 17:02:19 +01:00
ken.aguilar
ab80a372c8 quick start guide 2022-03-09 10:43:26 -05:00
Alexander Biehl
007ad9fda4
Create README.md 2022-03-09 15:04:12 +01:00
Alex Biehl
2a7d224c1c Fix request substitution marker 2022-03-09 14:21:59 +01:00
Alex Biehl
7dc76f36e3 Deterministic ordering for API methods 2022-03-09 13:39:23 +01:00
Alex Biehl
c7a7dfa111 Remove usage of mapKeys 2022-03-09 13:27:19 +01:00
Alex Biehl
443b8c1f68 Remove bytestring lower bound 2022-03-09 13:24:12 +01:00
Alex Biehl
c7fdeafaed Downgrade Cabal version requirement to 3.0 2022-03-09 13:12:11 +01:00