TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

1 pointsby skarlso7 months ago
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!

no comments

no comments