When users are viewing public endpoints that reference internally marked schemas, we need a way to display an error message to let the user know they do not have permissions to view it.
Added a check at the toplevelschemarow and at the schemarow levels to check for the x-sl-error-message property
How Has This Been Tested?
Manually tested changes by pulling this package into platform internal and manually making changes to the schema and schema permissions and seeing if the error message showed up as expected.
Added test coverage for SchemaRow
Screenshot(s)/recordings(s)
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Motivation and Context
When users are viewing public endpoints that reference internally marked schemas, we need a way to display an error message to let the user know they do not have permissions to view it.
InsertIssueNumberHere
https://github.com/stoplightio/platform-internal/issues/10534
Description
Added a check at the toplevelschemarow and at the schemarow levels to check for the
x-sl-error-message
propertyHow Has This Been Tested?
Manually tested changes by pulling this package into platform internal and manually making changes to the schema and schema permissions and seeing if the error message showed up as expected.
Added test coverage for SchemaRow
Screenshot(s)/recordings(s)
Types of changes
Checklist