Repository navigation
feat!: support PureQL specification 0.1.0-preview.3.0.0 - #94
Merged
Merged
Conversation
Move the specification submodule to tag 0.1.0-preview.3.0.0 and test the transformer against it. The transformer already emits every definition of 3.0.0 unchanged; new tests check that no JSON Schema keyword the specification uses (dependentRequired, minProperties, maxItems, minContains / maxContains, if / then / else, ...) is lost on the way through Microsoft.OpenApi. BREAKING CHANGE: the emitted schema follows specification 3.0.0, whose tightened constraints reject some queries 0.1.0-preview.2.0.1 accepted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/Tests/PureQL-Specificationsubmodule from0.1.0-preview.2.0.1(b58f906) to0.1.0-preview.3.0.0(7df998c), and updates the comment in the test csproj that names the pinned tag.$defsgenerically, and all 2592 definitions (1712 new, none removed) come through Microsoft.OpenApi unchanged on both targets:net11.0(Microsoft.OpenApi 3.11.0) andnet10.0(2.13.0). The only rewrites are the documented ones (boolean subschemas, a non-stringconstturned intoenum). The one other difference is that 12 empty"required": []arrays are dropped, and those never required anything.SpecificationTests:KeepsEveryOccurrenceOfKeywordchecks that each JSON Schema keyword the specification uses appears as often in the emitted components as in the specification. This covers the keywords that are new or more widely used in 3.0.0:dependentRequired,minProperties,maxItems,minContains/maxContains,uniqueItems,contains,if/then/else,patternand others.KeepsEveryConstOrEnumchecks the same forconstandenumtaken together, since one turns into the other.0.1.0-preview.3.0.0. CHANGELOG has a0.1.0-preview.1.0.0section.Versioning
Specification 3.0.0 is a breaking release: some queries that 2.0.1 accepted no longer match the emitted schema (for example
dateAddDayswithleft/right, or"skip": 0). Following the repo's preview rules, that is aPREV_MAJORbump, so the next release is0.1.0-preview.1.0.0. The public API ofPureQLQueryDocumentTransformeris unchanged, so package validation against0.1.0-preview.0.5.0still passes.Checks run locally
dotnet build --no-restore -warnaserror: 0 warningsdotnet format --verify-no-changes,dotnet csharpier check .: cleandotnet test: 55 passed (net11.0). The suite also passes against the net10.0 build of the library.dotnet stryker --mutation-level Complete --break-at 64: 64.52 %🤖 Generated with Claude Code