Skip to content

Conversation

decyjphr
Copy link
Collaborator

Resolves #689

@Copilot Copilot AI review requested due to automatic review settings December 25, 2024 15:27
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.

Files not reviewed (2)
  • package.json: Language not supported
  • schema/settings.json: Language not supported
Comments suppressed due to low confidence (1)

script/build-schema:3

  • [nitpick] The variable name $RefParser is unconventional due to the $ prefix. Consider renaming it to RefParser.
const $RefParser = require('@apidevtools/json-schema-ref-parser')

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more


await fs.mkdir('schema/dereferenced', { recursive: true })
await fs.writeFile('schema/dereferenced/settings.json', JSON.stringify(schema, null, 2))
})().catch(console.error)
Copy link
Preview

Copilot AI Dec 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error handling with .catch(console.error) is too generic. Consider providing a more descriptive error message.

Suggested change
})().catch(console.error)
})().catch(error => {
console.error('An error occurred while processing the schema:', error);
});

Copilot uses AI. Check for mistakes.

@decyjphr decyjphr merged commit c1ee48c into main-enterprise Dec 25, 2024
5 checks passed
@decyjphr decyjphr deleted the decyjphr/pr-689 branch December 25, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants