the-sett / elm-aws-codegen Goto Github PK
View Code? Open in Web Editor NEWA code generator for AWS service stubs in Elm.
License: Apache License 2.0
A code generator for AWS service stubs in Elm.
License: Apache License 2.0
Was asked about the iot service on slack. That's a REST-JSON one.
There is an issue with refined strings not matching their regexes correctly. This could probably be solved by escaping the regex correctly. However, after discussing it, decided it would be better to not do this field-by-field validation of requests and responses. It makes the API awkward to use, and is unusual for a client stub to do this anyway, since the AWS services themselves validate their inputs.
Remove the refined Int and String types, and replace with plain Ints and Strings.
To achieve this:
By doing the above, the use of refined types becomes a parameter of the code generator - can put it back at a later date if desired. Or possible validate responses, but not requests, etc.
Based on the cognito service file the DateType is a timestamp which is internally represented as int (Unix secons) for AWSCognito, specifcally the expiration field of identity credentials
As per the the sdk code here, the timestamp can be iso string , date object or a unix timestamp
Some of the AWS specs redefine basic types, so the code ends up with things like:
type alias Username = String
Or even:
type alias String = String
Should not create aliases for basic types. Remove these aliases and just use the basic type directly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.