Skip to content

Conversation

Dianoga
Copy link
Contributor

@Dianoga Dianoga commented Jul 8, 2025

Description

Check for validation results that will result in an error and reject with that error.

Also, add additional safety around the conversionResult handling to avoid generic errors on failure.

Motivation and Context

When a spec is provided that was missing required fields (title, version) in the info section, the build process would fail with a generic TypeError due to conversionResult not existing.

How Has This Been Tested?

Only locally in the compiled node_modules environment.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

Check for validation results that will result in an error and reject with that error.

Also, add additional safety around the `conversionResult` handling to avoid generic errors on failure.
@sserrata
Copy link
Member

Thanks @Dianoga, the proposed change works as expected.

@sserrata sserrata self-assigned this Jul 14, 2025
@sserrata sserrata added the enhancement New feature or request label Jul 14, 2025
@sserrata sserrata merged commit af4f3de into PaloAltoNetworks:main Jul 14, 2025
8 checks passed
Copy link

Visit the preview URL for this PR (updated for commit d473ea5):

https://docusaurus-openapi-36b86--pr1200-pj7cypa3.web.app

(expires Wed, 13 Aug 2025 19:30:38 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: bf293780ee827f578864d92193b8c2866acd459f

Copy link

Visual Diff Summary

View Logs

Total: 77, Matches: 77, Diffs: 0, Skipped: 0

Page Status

dsuket pushed a commit to dsuket/docusaurus-openapi-docs that referenced this pull request Oct 13, 2025
Check for validation results that will result in an error and reject with that error.

Also, add additional safety around the `conversionResult` handling to avoid generic errors on failure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants