aws-beam / aws-codegen

Code generator for AWS clients in Erlang and Elixir.
Other
53 stars 49 forks source link

update CloudDirectory #3

Closed jmettes closed 5 years ago

jmettes commented 5 years ago

Go AWS SDK updated their api-2.json from 2016-05-10 to 2017-01-11 So, I was getting this error:

** (File.Error) could not read file "/aws-sdk-go/models/apis/clouddirectory/2016-05-10/api-2.json": no such file or directory
    (elixir) lib/file.ex:319: File.read!/1
    (aws_codegen) lib/aws_codegen/rest_json_service.ex:58: AWS.CodeGen.RestJSONService.load_context/5
    (aws_codegen) lib/aws_codegen.ex:151: AWS.CodeGen.generate_code/8
    (elixir) lib/task/supervised.ex:89: Task.Supervised.do_apply/2
    (elixir) lib/task/supervised.ex:38: Task.Supervised.reply/5
    (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Function: &AWS.CodeGen.generate_code/8
    Args: [:elixir, :rest_json, "AWS.CloudDirectory", "/aws-sdk-go/models/apis/clouddirectory/2016-05-10/api-2.json", "/aws-sdk-go/models/apis/clouddirectory/2016-05-10/docs-2.json", "priv", "../aws-elixir/lib/aws/cloud_directory.ex", []]

This PR fixes that.

jmettes commented 5 years ago

Actually, this duplicates https://github.com/aws-beam/aws-codegen/pull/2. Closing this one.