Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: internal schema apprears as object on logout #2705

Merged
merged 13 commits into from
Oct 10, 2024
Merged

Conversation

SB-harshitajadhav
Copy link
Contributor

@SB-harshitajadhav SB-harshitajadhav commented Sep 12, 2024

STOP-1027

In general, make sure you have: (check the boxes to acknowledge you've followed this template)

Previously, if not logged in, the schema which is marked internal showing up in dropdown as an empty 'object' for oneOf/anyOf in public docs.

Before

image (13) image (14)

After

image (15) image (16)

In case of every schema is internal in the list it will display the error message.

image (18)

Other Available PR Templates:

Copy link

netlify bot commented Sep 12, 2024

Deploy Preview for stoplight-elements ready!

Name Link
🔨 Latest commit 55d1321
🔍 Latest deploy log https://app.netlify.com/sites/stoplight-elements/deploys/6704fa8e7f34080008813c2f
😎 Deploy Preview https://deploy-preview-2705--stoplight-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 12, 2024

Deploy Preview for stoplight-elements-demo ready!

Name Link
🔨 Latest commit 55d1321
🔍 Latest deploy log https://app.netlify.com/sites/stoplight-elements-demo/deploys/6704fa8ee657ea0009999fd1
😎 Deploy Preview https://deploy-preview-2705--stoplight-elements-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@SB-akshaythakar SB-akshaythakar left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@bhaskarsontakke
Copy link

Please add the screenshot for the other usecase like the dropdown contains all the error messages/ showing an Object values

Copy link

@bhaskarsontakke bhaskarsontakke left a comment

Choose a reason for hiding this comment

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

looks good to me., though I have added on comment. Please address it.

Copy link
Contributor

@ben-smartbear ben-smartbear left a comment

Choose a reason for hiding this comment

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

going to need some test coverage for this

};
expect(resolvedObject).toEqual(filteredObject);
});
it('show the error if all object contains an error for oneOf', () => {

Choose a reason for hiding this comment

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

may be you can put a comment saying "The schema marked as internal so it's populate the error object.

Copy link

@bhaskarsontakke bhaskarsontakke left a comment

Choose a reason for hiding this comment

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

Changes looks to good to me

@SB-harshitajadhav SB-harshitajadhav merged commit 360935f into main Oct 10, 2024
7 checks passed
@SB-harshitajadhav SB-harshitajadhav deleted the STOP-1027 branch October 10, 2024 09:23
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.

5 participants