Skip to content
Discussion options

You must be logged in to vote

Markdown-in-YAML-field linting isn't built in yet: rumdl can lint markdown extracted from Rust doc comments and from fenced code blocks, but it has no YAML field extraction. And you're right that a [per-file-flavor] YAML entry would lint the whole file as markdown, which floods you with false positives on the YAML syntax itself.

What works today, using rumdl's stdin support plus yq:

yq '[.. | select(has("description")) | .description] | join("\n\n")' spec.yaml \
  | rumdl check --stdin --stdin-filename spec-descriptions.md

This pulls every description out of the spec, joins them into one markdown document, and lints it. I tested it against the official AsyncAPI streetlights/slack/gitter e…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by polarweasel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants