Grok currently imposes a minimum level of maturity of experimental. This
makes clear sense - anything less than experimental lacks sufficient thought
to be reliably usable.
However, in the very early phases of building downstream libraries, access to
a schema (however immature) is more valuable than a guarantee of minimum
maturity.
This PR allows the user invoking go generate to set a mimimum maturity,
potentially including the merged schemas. This could also be used to
only render schemas that are stable or merged.
It is fully intended that this feature will not be used once Grok goes GA,
and could well be removed.
Grok currently imposes a minimum level of maturity of
experimental
. This makes clear sense - anything less than experimental lacks sufficient thought to be reliably usable.However, in the very early phases of building downstream libraries, access to a schema (however immature) is more valuable than a guarantee of minimum maturity.
This PR allows the user invoking
go generate
to set a mimimum maturity, potentially including themerged
schemas. This could also be used to only render schemas that arestable
ormerged
.It is fully intended that this feature will not be used once Grok goes GA, and could well be removed.
This PR depends upon https://github.com/grafana/grafana/pull/63631.