Skip to content

RLP-156282 Fix Crashing CSPM API Pages - add type property to BaseFilterSchema #913

Merged
jrdevore merged 3 commits into
masterfrom
RLP-156282-crashing-cspm-pages-basefilter-schema
May 21, 2025
Merged

RLP-156282 Fix Crashing CSPM API Pages - add type property to BaseFilterSchema #913
jrdevore merged 3 commits into
masterfrom
RLP-156282-crashing-cspm-pages-basefilter-schema

Conversation

@jrdevore
Copy link
Copy Markdown
Contributor

Fix Crashing CSPM API Pages

https://jira-dc.paloaltonetworks.com/browse/RLP-156282

Problem and Fix

image

The Schema BaseFilterModel defines a discriminator with a propertyName of type.
This "property" is not defined with in the properties of the schema. To fix the issue, define the type property to the BaseFilterSchema as follows:

This is a temporary fix to stop pages from crashing that fail to define the discriminator.

Added to Alerts.json, AssetInventory.json, AssetExplorer.json, and CompliancePosture.json spec files within the properties of BaseFilterSchema schema object

          "type": {
            "type":"string"
          }

Commit message: "RLP-156282 add type property to BaseFilterSchema to fix crashing pages"

Impacted Pages

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.

@jrdevore jrdevore requested review from manukumar6 and sserrata May 20, 2025 22:35
@jrdevore jrdevore requested a review from a team as a code owner May 20, 2025 22:35
@jrdevore jrdevore added cloud Use this label to trigger cloud product builds cspm-api-documentation Cloud Security API Documentation labels May 20, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2025

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

https://pan-dev-f1b58--pr913-fnqwsftt.web.app

(expires Fri, 20 Jun 2025 17:03:24 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 9359a9fa100d5fdb082f75280473a90b1f96eb51

@jrdevore jrdevore merged commit c665367 into master May 21, 2025
6 checks passed
@jrdevore jrdevore deleted the RLP-156282-crashing-cspm-pages-basefilter-schema branch May 21, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cloud Use this label to trigger cloud product builds cspm-api-documentation Cloud Security API Documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants