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: LEGO/AsyncAPI.NET
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.1.1
Choose a base ref
...
head repository: LEGO/AsyncAPI.NET
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.2.0
Choose a head ref
  • 14 commits
  • 156 files changed
  • 5 contributors

Commits on Feb 16, 2024

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

Commits on Feb 27, 2024

  1. feat: improve AsyncApiAny api surface.

    ## About the PR
    Fixes some issues with working with AsyncApiAny, figuring out the correct types etc.
    Added new GetValue type methods for extracting expected values.
    These use `system.text.json` to deserialize to `T` from the `JsonNode` type.
    
    Added a static FromExtension method, to remove redundant type casting.
    So instead of 
    ```csharp
    if (TryGetValue(key, out IAsyncApiExtension extension))
    {
      var myType = (extension as AsyncApiAny).GetValue<MyType>();
    }
    ```
    You do
    ```csharp
    if (TryGetValue(key, out IAsyncApiExtension extension))
    {
      var myType = AsyncApiAny.FromExtensionOrDefault<MyType>(extension);
    }
    ```
    
    Added new constructor allowing for much simpler `AsyncApiAny` initialization, utlizing `system.json.text` to figure out the JsonNode type.
    
    ### Changelog
    - Added: `GetValue<T>()`
    - Added: `GetValueOrDefault<T>()`
    - Added: `TryGetValue<T>()`
    - Added: static `FromExtensionOrDefault<T>(IAsyncApiExtension extension)`
    - Added: new constructor to allow for easier object creation.
    - Obsoleted: `AsyncApiArray`
    - Obsoleted: `AsyncApiObject`
    VisualBean committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    9063f4e View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

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

Commits on Mar 14, 2024

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

Commits on Mar 25, 2024

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

Commits on Mar 26, 2024

  1. Configuration menu
    Copy the full SHA
    f5529e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    581f680 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ee91a56 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    18f2cb3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6169554 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2024

  1. Configuration menu
    Copy the full SHA
    efcf8f0 View commit details
    Browse the repository at this point in the history
  2. feat: add cultureinfo to reader/writer settings. (#152)

    Co-authored-by: Alex Wichmann <VisualBean@users.noreply.github.com>
    ByronMayne and VisualBean authored Mar 30, 2024
    Configuration menu
    Copy the full SHA
    0199420 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f3bff4a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5cd3a6b View commit details
    Browse the repository at this point in the history
Loading