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

Reuse createAnyOneOf while creating a property #628

Merged
merged 4 commits into from
Oct 17, 2023

Conversation

Ugzuzg
Copy link
Contributor

@Ugzuzg Ugzuzg commented Sep 28, 2023

Description

createAnyOneOfProperty has an incomplete implementation and doesn't display all possible types at the moment, but only 'object' type. Reusing createAnyOneOf helps with making it display all possible mods.

Motivation and Context

A bug in createAnyOneOfProperty prevents from seeing all mods and shows MOD1, MOD2, etc for primitive types and arrays.

How Has This Been Tested?

See the snapshot of the before and after:
55a2685

Screenshots (if appropriate)

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.

@welcome-to-palo-alto-networks

🎉 Thanks for opening this pull request! We really appreciate contributors like you! 🙌

@sserrata
Copy link
Member

@Ugzuzg, thanks for opening the PR. Looks like there was a linter error that stopped the build from happening.

@Ugzuzg
Copy link
Contributor Author

Ugzuzg commented Sep 29, 2023

@sserrata, reconfigured eslint to allow importing dev dependencies in test files. Hope, that's ok.

Ugzuzg and others added 4 commits October 17, 2023 11:29
`createAnyOneOfProperty` has an incomplete implementation and doesn't display
all possible types at the moment, but only 'object' type.
@github-actions
Copy link

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

https://docusaurus-openapi-36b86--pr628-gy4p38hx.web.app

(expires Thu, 16 Nov 2023 15:39:39 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@sserrata
Copy link
Member

Hi @Ugzuzg, I addressed the remaining linter error. The deploy preview looks good - how are things looking for you?

@Ugzuzg
Copy link
Contributor Author

Ugzuzg commented Oct 17, 2023

Looks good.

Copy link
Member

@sserrata sserrata left a comment

Choose a reason for hiding this comment

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

LGTM, tested with CSPM Reports API spec

@sserrata sserrata merged commit 32d51d1 into PaloAltoNetworks:v2.0.0 Oct 17, 2023
11 checks passed
@welcome-to-palo-alto-networks

🎉 Congrats on getting your first pull request merged! We here at Palo Alto Networks are so grateful! ❤️

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.

None yet

2 participants