Closed RagaviMuthukrishnan closed 4 months ago
Is that just your default object output?
Try doing console.log(JSON.stringify(...)) instead
Is that just your default object output?
Try doing console.log(JSON.stringify(...)) instead
Thanks much @jonluca for the response.
I am getting the below error message if i try to wrap it using JSON.stringify()
--> starting at object with constructor 'Object'
| property 'properties' -> object with constructor 'Object'
--- property 'parent_folder_workspace_item' closes the circle
at JSON.stringify (<anonymous>)
at resolveSchema (/Users/ragavimuthukrishnan/Apromore-playwright-tests/tests/api/schemas/sample.test.js:15:24)
Error: No tests found.
Make sure that arguments are regular expressions matching test files.
You may need to escape symbols like "$" or "*" and quote the arguments.```
Can you please guide me how to get rid of that in order to extract the actual object contents instead of [Object] ?
Hello Team ,
I am developing an automation code which would validate the API response with json structure defined in OpenSpec YAML file
I am trying to use the parser to parse one of our OpenSpec YAML files and decode the response values as proper JSON but the parsed value comes back as "[Object]" instead of the value. It is part of "$ref" attribute which I believe is not getting resolved properly. Sharing the snippet of response which I would to receive as parsed JSON in proper structure
Snippet from YAML
Javascript code using the json-schema-ref-parse
Received Output
Expected Output
Instead of items: [Object] would like to see the actual resolved array Object resolving to appropriate JSON structure