TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Crd-to-sample-YAML is v1.0.0 with a ton of features

1 点作者 skarlso7 个月前
Hello! :)<p>This project of mine has grown quite a bit now. It has a TON if features and today, I&#x27;m happy to say that it reached maturity and entered v1.0.0 major version.<p>With this latest version, the WASM frontend got a live editor in which you can play around with the CRD JSON schema and find out how it looks like on the fly.<p>It can also generate a JSON schema now from the CRD that can be used for auto-completion offering your users an additional nicety to show them that your CRDs can be autocompleted.<p>It&#x27;s also offering support for all types, not just CRDs, that follow the this YAML structure:<p><pre><code> # top level spec field spec: names: kind: # this should be the kind of the generated object group: # the group of the generated object # optional version field versions: - name: v1alpha1 # OpenAPI schema (like the one used by Kubernetes CRDs). Determines what fields # the XR (and claim) will have. Will be automatically extended by crossplane. # See https:&#x2F;&#x2F;kubernetes.io&#x2F;docs&#x2F;tasks&#x2F;extend-kubernetes&#x2F;custom-resources&#x2F;custom-resource-definitions&#x2F; # for full CRD documentation and guide on how to write OpenAPI schemas schema: openAPIV3Schema: # optional validation field describing all versions validation: openAPIV3Schema: </code></pre> It&#x27;s all unstructured in the background so it _should_ work ( please report any errors... ).<p>For more information checkout out the release notes and the README.<p>Happy generating!

暂无评论

暂无评论