[OpenAPI 3.1.0 support] JsonSchema type changes not handled.

Open
#745 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, openapi
Domain
api

Research direction

Start by reading core/src/main/java/org/openapitools/openapidiff/core/compare/SchemaDiff.java around lines 349-352, then trace other schema comparisons affected by OpenAPI 3.1.0 deserializing type into types. Done means schema diffs correctly handle JsonSchema type changes throughout the affected comparison paths.

Written by the indexing model from the issue text.

Description

OpenAPI 3.1.0 Support

While migration to OpenAPI 3.1.0 all Schema objects becomes JsonSchema. 3.1.0 deserializes schema "type" to array field "types". At least this part of SchemaDiff works incorrectly: SchemaDiff.java#L349-L352. Most probably such changes will affect other parts of library.

Dominant language
Java
Stars
1.1k
Forks
191
Avg merge
4d 23h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenAPITools/openapi-diff

All issues in OpenAPITools/openapi-diff

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.