Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: oasdiff/oasdiff
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: oasdiff/oasdiff
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feat/openapi-3.1-support
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 9 commits
  • 16 files changed
  • 2 contributors

Commits on Feb 5, 2026

  1. feat: add OpenAPI 3.1 support

    Add full support for diffing OpenAPI 3.1 documents including:
    
    Document level:
    - WebhooksDiff for OpenAPI 3.1 webhooks
    - JSONSchemaDialectDiff for JSON Schema dialect specification
    
    Info object:
    - SummaryDiff for Info.Summary field
    
    License object:
    - IdentifierDiff for SPDX license identifiers
    
    Schema object (JSON Schema 2020-12):
    - ConstDiff for const keyword
    - ExamplesDiff for examples array
    - PrefixItemsDiff for tuple validation
    - ContainsDiff, MinContainsDiff, MaxContainsDiff for array containment
    - PatternPropertiesDiff for pattern-based properties
    - DependentSchemasDiff for conditional schemas
    - PropertyNamesDiff for property name validation
    - UnevaluatedItemsDiff, UnevaluatedPropertiesDiff
    
    Closes #52
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    reuvenharrison and claude committed Feb 5, 2026
    Configuration menu
    Copy the full SHA
    95dce83 View commit details
    Browse the repository at this point in the history
  2. test: add tests for OpenAPI 3.1 features

    Add comprehensive tests for webhooks and new OpenAPI 3.1 / JSON Schema 2020-12 fields:
    - Webhook add/delete/modify tests
    - JSONSchemaDialect diff tests
    - Info.Summary diff tests
    - License.Identifier diff tests
    - Schema fields: const, examples, prefixItems, contains, minContains,
      maxContains, patternProperties, dependentSchemas, propertyNames,
      unevaluatedItems, unevaluatedProperties
    
    Coverage improvements:
    - webhooks_diff.go: 87.5-100%
    - schema_diff.go: 86.4-100%
    - info_diff.go: 81.2-100%
    - license_diff.go: 83.3-94.1%
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    reuvenharrison and claude committed Feb 5, 2026
    Configuration menu
    Copy the full SHA
    35471c6 View commit details
    Browse the repository at this point in the history
  3. test: add more webhook coverage tests

    Add additional tests for webhook diff functionality:
    - Test Empty() with populated but empty diff struct
    - Test webhooks only in base spec (deletion case)
    - Test webhooks only in revision spec (addition case)
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    reuvenharrison and claude committed Feb 5, 2026
    Configuration menu
    Copy the full SHA
    1322552 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2026

  1. fix: handle ExclusiveBound type for OpenAPI 3.1 compatibility

    OpenAPI 3.1 changed exclusiveMinimum/exclusiveMaximum from boolean
    modifiers to numeric bound values. Updated oasdiff to work with the
    new ExclusiveBound type from kin-openapi that supports both formats.
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    reuvenharrison and claude committed Feb 6, 2026
    Configuration menu
    Copy the full SHA
    60a2fc4 View commit details
    Browse the repository at this point in the history
  2. test: add exclusiveMinimum/exclusiveMaximum examples for OpenAPI 3.1

    - Add score property with exclusive bounds to Order schema in test data
    - Add test for ExclusiveMinDiff/ExclusiveMaxDiff with numeric values
    - Fix exclusiveBoundToValue to extract actual values from ExclusiveBound struct
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    reuvenharrison and claude committed Feb 6, 2026
    Configuration menu
    Copy the full SHA
    274fdfb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1d760e8 View commit details
    Browse the repository at this point in the history
  4. fix: sanitize branch name in Docker workflow for feature branches

    The docker/metadata-action automatically converts slashes to dashes,
    so use its output for feature branch builds to avoid invalid tag errors.
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    reuvenharrison and claude committed Feb 6, 2026
    Configuration menu
    Copy the full SHA
    d6f8063 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2026

  1. chore: update kin-openapi to latest OpenAPI 3.1 support

    Update replace directive to oasdiff/kin-openapi@1da4078 which includes:
    - JSON Schema 2020-12 identity keywords ($id, $anchor, $dynamicRef, $dynamicAnchor)
    - Content vocabulary (contentMediaType, contentEncoding, contentSchema)
    - Discriminator support for anyOf
    - jsonSchemaDialect validation
    - mutualTLS security scheme
    - License url/identifier mutual exclusivity
    - Paths optional in 3.1
    - JSON Schema 2020-12 validation in openapi3filter
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    reuvenharrison and claude committed Feb 9, 2026
    Configuration menu
    Copy the full SHA
    b062fcb View commit details
    Browse the repository at this point in the history
  2. feat: add diff support for remaining JSON Schema 2020-12 keywords

    Support diffing if/then/else, dependentRequired, $id, $anchor,
    $dynamicRef, $dynamicAnchor, contentMediaType, contentEncoding,
    and contentSchema fields added in kin-openapi's OpenAPI 3.1 support.
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    reuvenharrison and claude committed Feb 9, 2026
    Configuration menu
    Copy the full SHA
    919ee43 View commit details
    Browse the repository at this point in the history
Loading