Skip to content

Commit

Permalink
Added support for yml format
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSaini101 committed Nov 20, 2024
1 parent e693e8c commit ba2ce95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/pretty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class Pretty extends Command {

try {
const fileFormat = retrieveFileFormat(this.specFile.text());
if (fileFormat === 'yaml') {
if (fileFormat === 'yaml' || fileFormat == 'yml') {

Check failure on line 44 in src/commands/pretty.ts

View workflow job for this annotation

GitHub Actions / Test NodeJS PR - ubuntu-latest

Expected '===' and instead saw '=='
const yamlDoc = yaml.parseDocument(content);
formatted = yamlDoc.toString({
lineWidth: 0,
Expand Down

0 comments on commit ba2ce95

Please sign in to comment.