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: microsoft/OpenAPI.NET
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 03eef6b
Choose a base ref
...
head repository: microsoft/OpenAPI.NET
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 01be537
Choose a head ref
  • 15 commits
  • 24 files changed
  • 5 contributors

Commits on Apr 16, 2026

  1. Configuration menu
    Copy the full SHA
    f208e24 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2026

  1. Merge pull request #2826 from microsoft/ci/upgrade-net-10-to-v2

    ci: upgrades repository to net10
    baywet authored Apr 17, 2026
    Configuration menu
    Copy the full SHA
    6ce4ea5 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2026

  1. fix: null reference exception for boolean component schemas

    Co-authored-by: Copilot <[email protected]>
    Signed-off-by: Vincent Biret <[email protected]>
    (cherry picked from commit fe0b50a)
    baywet and Copilot committed Apr 27, 2026
    Configuration menu
    Copy the full SHA
    cc13028 View commit details
    Browse the repository at this point in the history
  2. test(schema): validate empty schema serialization across all OpenAPI …

    …versions
    
    Convert SerializeBasicSchemaAsV3JsonWorks from a single-version test to a theory
    that validates empty schema serialization for all supported versions (2.0, 3.0, 3.1, 3.2).
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit b6c1fe8)
    baywet and Copilot committed Apr 27, 2026
    Configuration menu
    Copy the full SHA
    83421e0 View commit details
    Browse the repository at this point in the history
  3. test(schema): add deserialization tests for empty and boolean schemas

    Add theory tests across OpenAPI 3.1 and 3.2 to validate deserialization of:
    - Empty schema object ({})
    - Boolean schema value (true)
    
    These tests ensure that non-standard but valid schema forms are parsed
    without errors and produce valid OpenApiSchema objects.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit b9b9b75)
    baywet and Copilot committed Apr 27, 2026
    Configuration menu
    Copy the full SHA
    542bde5 View commit details
    Browse the repository at this point in the history
  4. test(schema): validate false schema deserializes to not with empty ob…

    …ject
    
    Add tests for both OpenAPI 3.1 and 3.2 that verify when a schema is simply
    'false', it deserializes to a schema with a Not property containing an empty
    schema object. This ensures JSON Schema 2020-12 boolean schema semantics are
    properly handled.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 7d43b15)
    baywet and Copilot committed Apr 27, 2026
    Configuration menu
    Copy the full SHA
    56118fe View commit details
    Browse the repository at this point in the history
  5. tests: pass serialization format to disambiguate

    Co-authored-by: Copilot <[email protected]>
    Signed-off-by: Vincent Biret <[email protected]>
    (cherry picked from commit 15c1305)
    baywet and Copilot committed Apr 27, 2026
    Configuration menu
    Copy the full SHA
    f09704d View commit details
    Browse the repository at this point in the history
  6. fix(schema): support boolean schemas in deserializer for OpenAPI 3.1/3.2

    Implement special handling for JSON Schema 2020-12 boolean schemas:
    - true: deserializes to empty schema (allows any value)
    - false: deserializes to schema with not: {} (disallows any value)
    
    This enables proper support for boolean schemas as defined in the OpenAPI 3.1
    and 3.2 specifications, which adopt JSON Schema 2020-12.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 05b44be)
    baywet and Copilot committed Apr 27, 2026
    Configuration menu
    Copy the full SHA
    48aaf23 View commit details
    Browse the repository at this point in the history
  7. docs(schema): document boolean schema serialization and deserialization

    Add comprehensive documentation to the OpenApiSchema class summary explaining:
    - How boolean schemas deserialize: true → empty schema, false → not with empty
    - How to produce boolean schema-like behavior during serialization
    - Applicability to OpenAPI 3.1+ with JSON Schema 2020-12 support
    
    This clarifies the API contract for consumers working with boolean schemas.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 509f332)
    baywet and Copilot committed Apr 27, 2026
    Configuration menu
    Copy the full SHA
    43377ee View commit details
    Browse the repository at this point in the history
  8. perf(schema): optimize boolean schema deserialization

    Add generic GetValue<T>() method to ValueNode to allow direct type access without
    string conversion. Update V31 and V32 schema deserializers to use GetValue<bool>()
    directly instead of converting to string and parsing with bool.TryParse().
    
    This eliminates unnecessary string allocations and conversions for boolean schema
    values, improving performance in the deserialization hot path.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 7316e3f)
    baywet and Copilot committed Apr 27, 2026
    Configuration menu
    Copy the full SHA
    fe6f513 View commit details
    Browse the repository at this point in the history
  9. test(schema): rename deserialization test for clarity

    Rename DeserializeBasicSchemaWorks to DeserializeTrueSchemaParsesAsEmptySchema
    to better describe what the test validates - that boolean true values and empty
    schemas deserialize to the same result.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit a54c0fd)
    baywet and Copilot committed Apr 27, 2026
    Configuration menu
    Copy the full SHA
    8b76605 View commit details
    Browse the repository at this point in the history
  10. chore: adapt boolean schema cherry-picks to v2 branch

    Remove references to OpenApi3_2 version and Self property which don't exist
    in the v2 support branch. Keep only v2.0, v3.0, and v3.1 support in tests.
    
    Co-authored-by: Copilot <[email protected]>
    baywet and Copilot committed Apr 27, 2026
    Configuration menu
    Copy the full SHA
    8bdfa30 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #2840 from microsoft/fix/boolean-schemas-to-v2

    fix/boolean schemas to v2
    baywet authored Apr 27, 2026
    Configuration menu
    Copy the full SHA
    ad16c3e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    88cd42e View commit details
    Browse the repository at this point in the history
  13. Merge pull request #2841 from microsoft/release-please--branches--sup…

    …port/v2--components--Microsoft.OpenApi
    
    chore(support/v2): release 2.7.4
    baywet authored Apr 27, 2026
    Configuration menu
    Copy the full SHA
    01be537 View commit details
    Browse the repository at this point in the history
Loading