How to use the @stoplight/yaml.parseWithPointers function in @stoplight/yaml

To help you get started, we’ve selected a few @stoplight/yaml examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stoplightio / spectral / src / parsers / yaml.ts View on Github external
export const parseYaml = (input: string) =>
  parseWithPointers(input, {
    ignoreDuplicateKeys: false,
    mergeKeys: true,
    preserveKeyOrder: true,
  });

@stoplight/yaml

Useful functions when working with YAML.

Apache-2.0
Latest version published 8 months ago

Package Health Score

67 / 100
Full package analysis