Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Conversation

@stjeffrey
Copy link

We had an issue using openapi-comment-parser when some Kubernetes yaml files were in our source folder.
Some of our yamls had '---' which allows us to combine multiple K8s objects in a single file.
After some digging we found the issue to be JSYaml that threw an exception and the parsefile function assumes that if you catch an exception there will be a mark object which isn't the case here.

The code simply checks for e.mark and if it doesn't exist it returns line and column 0 instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant