Vale CMS Need more than a rule playground? Explore
Asset Explorer

CRD

Every description in a Kubernetes CustomResourceDefinition's schema, read as Markdown.

view daselapi Vale ≥ 3.14.0 Source

Getting started

Save the file as config/views/CRD.yml under your StylesPath, then:

[*.{yml,yaml}]
BasedOnStyles = Vale

View = CRD

CRD.yml

Pull named scopes out of a file Vale can’t otherwise parse.
# A Kubernetes CustomResourceDefinition: every `description` in each
# version's `openAPIV3Schema`, read as Markdown.
#
#   [*.{yml,yaml}]
#   BasedOnStyles = Vale
#   View = CRD
engine: dasel
scopes:
  - name: description
    expr: 'search(has("openAPIV3Schema")).map(openAPIV3Schema).search(has("description")).map(description)'
    type: md