Skip to content

fix: accept OpenAPI 3.1 type arrays in networkmock specs - #141

Merged
MaxMichel2 merged 1 commit into
mainfrom
fix/networkmock-openapi31-type-arrays
Oct 14, 2026
Merged

MaxMichel2 merged 1 commit into
mainfrom
fix/networkmock-openapi31-type-arrays

Conversation

@MaxMichel2

Copy link
Copy Markdown
Collaborator

Summary

  • Fix OpenAPI 3.1 spec loading when schema type is an array such as ["string", "null"], accepting both JSON and YAML and keeping the first non-"null" type.
  • Accept null entries in schema enums; skip them for generated responses and request-body discriminator matching.
  • Add JSON/YAML regression tests reproducing the reported Aruba schema shape, and update KDoc, module documentation, and changelog. No public API signature changes.
  • Refresh the tracked Graphify code graph and caches as required by repository guidance; generated graph changes account for most of the diff.

Validation

  • Passed: .\gradlew.bat :devview-networkmock-core:testAndroidHostTest "-Pandroidx.baselineprofile.skipgeneration" — 170 tests, including both new regression tests and real sample specs.
  • Passed: .\gradlew.bat detektFull; Detekt reported compiler-analysis errors that reduce analysis accuracy.
  • Passed: git diff --check and the commit-time Gitleaks hook.
  • Not checked: the complete Aruba spec (unavailable locally), iOS compilation, and device tests. Other unsupported OpenAPI 3.1 constructs may still fail.

Scope

Standalone change against main (208e870); no predecessor PR or stack dependency.

@MaxMichel2
MaxMichel2 merged commit 3d60161 into main Oct 14, 2026
13 checks passed
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.

2 participants