Skip to content

Getting list of below errors #7

@intermx-vignesht

Description

@intermx-vignesht

Using this module, I convert api_raw_spec string into json object via JSON.parse, I am getting the list of below errors,

  1. JSON having error SyntaxError: while parese the api_raw_spec in JSON.parse if YAML description contain Double-quote (")
  2. Showing the wrong array structure if YAML sample response contains an array. FYI, array name will be 0 and it's having array inner elements, then array name as a string, for example, wrong structure:
    {"id":123,"name":"sample name","0": ["email1","email2"],"emails": ""}
    correct structure:
    {"id":123,"name":"sample name","emails": ["email1","email2"]}
  3. Showing description as an array instead of a string if the multiline description in the sample response of YAML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions