Skip to content

fix: deplicated type on anyOf, oneOf and improve format listed order.#10769

Open
ykun9 wants to merge 1 commit intoswagger-api:masterfrom
ykun9:master
Open

fix: deplicated type on anyOf, oneOf and improve format listed order.#10769
ykun9 wants to merge 1 commit intoswagger-api:masterfrom
ykun9:master

Conversation

@ykun9
Copy link
Copy Markdown

@ykun9 ykun9 commented Mar 16, 2026

Description

fix: deplicated type with anyOf, oneOf parameters. make X | (X | Y) to X | Y
fix: improve format parameters listed order. make (string | null)($date-time) to string($date-time) | null

Motivation and Context

See #10654

How Has This Been Tested?

npm run test:unit
Test Suites: 3 skipped, 72 passed, 72 of 75 total
Tests:       12 skipped, 829 passed, 841 total
Snapshots:   0 total
Time:        2.934 s, estimated 3 s

Screenshots (if appropriate):

Before
image

After
image

Checklist

My PR contains...

  • No code changes (src/ is unmodified: changes to documentation, CI, metadata, etc.)
  • Dependency changes (any modification to dependencies in package.json)
  • Bug fixes (non-breaking change which fixes an issue)
  • Improvements (misc. changes to existing features)
  • Features (non-breaking change which adds functionality)

My changes...

  • are breaking changes to a public API (config options, System API, major UI change, etc).
  • are breaking changes to a private API (Redux, component props, utility functions, etc.).
  • are breaking changes to a developer API (npm script behavior changes, new dev system dependencies, etc).
  • are not breaking changes.

Documentation

  • My changes do not require a change to the project documentation.
  • My changes require a change to the project documentation.
  • If yes to above: I have updated the documentation accordingly.

Automated tests

  • My changes can not or do not need to be tested.
  • My changes can and should be tested by unit and/or integration tests.
  • If yes to above: I have added tests to cover my changes.
  • If yes to above: I have taken care to cover edge cases in my tests.
  • All new and existing tests passed.

…o X | Y

fix: improve format parameters listed order. make (string | null)($date-time) to string($date-time) | null
@ykun9 ykun9 changed the title fix: deplicated type on anyOf, oneOf and improve how format listed order. issue 10654 fix: deplicated type on anyOf, oneOf and improve format listed order. Mar 16, 2026
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.

1 participant