Skip to content

boat-angular generates uncompilable code when using bundleSpecs=true with an example array response #205

@daiscog

Description

@daiscog

Given the following scenario:

  • An input spec which references external example files
  • An example file which contains a JSON array as the root node

Running the generate goal with generatorName=boat-angular and bundleSpecs=true results in uncompilable code in the generated mock provider(string literals are not enclosed in quotation marks).

Interestingly, if you add writeDebugFiles=true to output the bundled spec to a file, then run the generator against that file, the bug is not present.

Example project illustrating the issue https://github.com/daiscog/boat-angular-bundle-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions