-
Notifications
You must be signed in to change notification settings - Fork 4k
Handle nested deprecated properties in generateSchemaExample #3267
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
Handle nested deprecated properties in generateSchemaExample #3267
Conversation
🦋 Changeset detectedLatest commit: 45af44c The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds support for excluding deprecated properties at both the schema and array-item levels from generated examples.
- Extend deprecation check to array items in
generateSchemaExample
- Add tests covering schema-level and nested (array-item) deprecation
- Include a changeset to document the patch
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
packages/react-openapi/src/generateSchemaExample.ts | Update deprecation condition to also filter out deprecated items |
packages/react-openapi/src/generateSchemaExample.test.ts | Add tests for schema deprecation and nested (array-item) deprecation |
.changeset/thick-chefs-repeat.md | Document the patch release in changeset |
Comments suppressed due to low confidence (1)
packages/react-openapi/src/generateSchemaExample.test.ts:1030
- [nitpick] The test description should use a consistent verb form (e.g.,
handles nested deprecated properties
) to match the other test and improve naming consistency.
it('handle nested deprecated properties', () => {
c514c8e
to
45af44c
Compare
Summary of the deployments: Version 1
Version 2
Test content |
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
No description provided.