Closed bpotaczek closed 3 years ago
This happens when the openApi
is present but empty:
openApi:
operations:
- {}
Maybe we should confirm and clarify that this field is intended to be optional?
That was the issue, I removed that empty field and everything worked fine. A note in documentation or a different exception would probably help. I would think that could also just always be overridden unless it is setup so we can manually add some operations with the api document.
Reopening so we can decide how to appropriately document the behavior of this field
Triaging to look into better documentation for next release.
Documentation for this field has been improved and will be released with version 0.5.1
.
When creating an ApiProduct and ApiDoc through a custom helm chart, the operations on the ApiDoc do not get resolved and the DevPortal throws an exception when trying to access it. If I manually create an ApiProduct using the same ApiDoc everything works well. I also verified that this still occurs even if the ApiDoc previously exists.
Helm chart generated relevant yaml
Manually created ApiProduct relevant yaml
Kubernetes status exception