Provide Library Metadata #588
Labels
enhancement
This issue is a feature request
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Use cases
info
metadata such asversion
andtitle
of the schema. (Currently these are populated with basic default values) Issue: Generate OpenAPIinfo
from annotation #539Describe the solution you'd like
I want a way to provide metadata for a library. This could be through an annotation:
#@schema/library-title "spellchecker"
or#@library/metadata {'title': 'spellchecker', 'version': '0.2.0'}
or#@schema/info {'title': 'spellchecker', 'version': '0.2.0'}
or through a flag:
--library-meta title=spellchecker
Anything else you would like to add:
We don't currently have any library metadata features except for the version module.
This could belong in the same file as the minimum required version. These two concepts both belong to the concept of a library.
version.require_at_least("0.26.0")
🤔 A consideration is how this would play with kapp-controller Packages which are often used with ytt, and have a concept of metadata and versions. Is there a way to ensure the same version of a ytt library and a package? Do these two things need distinct metadata?
🤔 What do other languages/programs use to provide metadata? Some things that come to mind are go.mod, helm, java, or goland..
Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: