Skip to content

Commit

Permalink
updated swift presets to generate for all models, including the embed…
Browse files Browse the repository at this point in the history
…ded non-models
  • Loading branch information
lawmicha committed Jun 12, 2020
1 parent d8a1f56 commit b9be43b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/amplify-codegen-appsync-model-plugin/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ const generateSwiftPreset = (
selectedType: modelName,
},
});
if (model.kind !== Kind.ENUM_TYPE_DEFINITION && hasDirective('model')(model)) {
// TODO: need to generate metadata for non models here
if (model.kind !== Kind.ENUM_TYPE_DEFINITION) {
config.push({
...options,
filename: join(options.baseOutputDir, `${modelName}+Schema.swift`),
Expand Down

0 comments on commit b9be43b

Please sign in to comment.