Skip to content

Add patternProperties support to JSON Schema objects#491

Open
ayushshrivastv wants to merge 4 commits intomattpolzin:mainfrom
ayushshrivastv:PatternPropertiesMain.swift
Open

Add patternProperties support to JSON Schema objects#491
ayushshrivastv wants to merge 4 commits intomattpolzin:mainfrom
ayushshrivastv:PatternPropertiesMain.swift

Conversation

@ayushshrivastv
Copy link
Contributor

Closes #391

Summary

  • add patternProperties support to OpenAPI 3.1 object schemas in OpenAPIKit
  • thread patternProperties through encoding/decoding, dereferencing, simplification, and schema combining
  • add regression coverage for object-schema coding, dereferenced schemas, and schema fragment combining

Testing

  • swift test --filter DereferencedSchemaObjectTests -Xswiftc -strict-concurrency=complete
  • swift test --filter SchemaFragmentCombiningTests -Xswiftc -strict-concurrency=complete
  • swift test --filter SchemaObjectTests -Xswiftc -strict-concurrency=complete

@ayushshrivastv
Copy link
Contributor Author

Nightly and coverage failures here were coming from Linux compiler/resource pressure rather than the patternProperties change itself.

What was happening:

  • swiftlang/swift:nightly-focal was failing in the build step with compile command failed due to signal 9.
  • codecov was also hitting a Linux resource ceiling during the full coverage run.

What I changed in follow-ups:

I also reproduced the nightly failure locally in swiftlang/swift:nightly-focal before pushing the mitigation.

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.

Support of patternProperties

1 participant