Fix: makes sure that the operationObject is an object. #821
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
For reasons unbeknown to me, probably related to changes in the standard, the parser gets tripped up at this type of structure
"openapi":"3.1.0",
"paths":{
"openapi":{
"0":"3","1":".","2":"0","3":".","4":"2"
}
It ends up trying to add a description to a string. Then errors out.
Motivation and Context
I made the bold assumtion that the opperations made on the variable named "operationObject" where ment to be object related opperations. So a small check for an object fixed my build issues.
How Has This Been Tested?
I have not made any attempt to run the test scripts as i was unable to resolve the dependency tree.
npm ERR! While resolving: demo@2.1.3 npm ERR! Found: react@18.2.0 npm ERR! node_modules/react npm ERR! react@"^18.2.0" from demo@2.1.3 npm ERR! demo npm ERR! demo@2.1.3 npm ERR! node_modules/demo npm ERR! workspace demo from the root project npm ERR!
However as i mentioned this change fixed my build, and has for me been without issue.
Do with this what you will, it might be that I'm the idiot - but seeing as it parsed fine in redoc I thought I'd create the issue.
Have a good day.