Generate OpenAPI spec for a function
It would be useful if we somehow supported generating and serving an OpenAPI spec for the route(s) served by a function, in particular documenting what the input types are.
cc @matzew @lkingland
@Cali0707 , can i work on it?
From discussions in the triage call today, the idea for this feature is:
- Each function will server a very simple OpenAPI spec documenting the default paths in a function by default
- There will be an option to override the default handler to allow for users to implement more details into their own OpenAPI spec
- We will start with playing around with this in https://github.com/knative-extensions/func-go, and when we are happy with it add it elsewhere
cc @lkingland in case I missed something
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.