https://pact.io logo
Join Slack
Powered by
# pact-net
  • f

    Fábio Rodrigues

    09/21/2022, 9:16 AM
    Hi there, does pact-net support message contract with NATS?
    m
    • 2
    • 5
  • a

    Andre Rodrigues

    09/29/2022, 11:35 AM
    Hello there! When I use PactVerifier, my provider checks all consumers that it has the latest published contract. However, is possible to set this verification only to one specific consumer instead verify all consumers? Is there any parameter, field? In some cases, I just would like to check the verification for one consumer. My code:
    Copy code
    IPactVerifier verifier = new PactVerifier(config);
    
                    verifier.ServiceProvider("test-provider", this.fixture.ServerUri)
                            .WithPactBrokerSource(new Uri("<https://test-broker/>"), options =>
                            {
                            options.ConsumerVersionSelectors(new ConsumerVersionSelector { Latest = true })
                                   .PublishResults(version);
                            })
                            .WithProviderStateUrl(new Uri(this.fixture.ServerUri, "/provider-states"))
                            .Verify();
  • m

    Matt (pactflow.io / pact-js / pact-go)

    09/29/2022, 11:57 AM
    Yes, via selectors: https://docs.pact.io/pact_broker/advanced_topics/consumer_version_selectors
    ✅ 1
  • m

    Matt (pactflow.io / pact-js / pact-go)

    09/29/2022, 11:57 AM
    You can also pass a URL to the exact pact you want to verify if known
    a
    • 2
    • 6
  • a

    Andre Rodrigues

    09/29/2022, 8:49 PM
    Hello there! Me again!! We are closer to finishing our pilots with PactNet in my company. I'm very confident that we will have success! 🙏 However, one big issue that we are facing is related to the way that the .net apps are built on a provider side. In many cases, the apps expose one "API in memory" and appears the verification on a provider side needs to have a real instance with a specific port running the provider app. Is it a mandatory requirement? Is there any workaround for that? Thanks a lot 😉
    🙌 1
    m
    • 2
    • 12
  • s

    Sarunas Kavaliauskas

    10/04/2022, 8:52 AM
    Hi, getting excpetion when running Pact.NET on UBI8 image (redhat/ubi8:8.5-226) x64, executed as runner in GitHub Actions Enterprise environment. Any ideas ?System.DllNotFoundException : Unable to load shared library ‘pact_ffi’ or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libpact_ffi: cannot open shared object file: No such file or directory
  • f

    Facundo Santillo

    10/18/2022, 10:52 AM
    Hi, reading the documentation I have found a matcher for Authorization that looks like following:
    .WithHeader("Authorization", Match.Regex("Bearer 2022-10-14T11:34:18.045Z", "Bearer \\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z"))
    Although, when using it like the example, it's throwing a 500 internal server error. Any clues?
  • m

    Matt (pactflow.io / pact-js / pact-go)

    10/18/2022, 11:41 AM
    Is it the double escaping? Set the log level to debug, you should be able to see why it’s not happy
  • f

    Facundo Santillo

    10/18/2022, 12:42 PM
    Created an issue, seems that is not using the regex at all since the logs says that is comparing by equality the 2 strings
  • f

    Facundo Santillo

    10/18/2022, 12:43 PM
    I thought that it would take the regex and use it to validate (same way as Regex.Test / Regex.Matches)
  • a

    Andre Rodrigues

    10/24/2022, 9:15 AM
    Hi all! I'm using pact verify with pact-net inside my code... I know that is possible to use the command cli to perform the verify on the provider side and I follow the examples in pact-net github. However, in what situation is it better to use cli for this verification? Or for .net the recommendation is to use by code? Thanks a lot :)
    m
    • 2
    • 8
  • s

    Steve Beck

    10/28/2022, 7:05 AM
    Has anyone experienced an issue where firing a request using the native backend runs forever, doesnt timeout, and doesnt return a response?
  • s

    Steven Ng

    11/21/2022, 12:44 PM
    Hello there, I would like to implement Pact Verifier on Azure In-Process Functions. I'm wondering if anyone could recommend what is the best way to • Host Azure Functions for testing • Configure ProviderMiddleware when In-Process Functions do not support middleware. Thanks!
    m
    • 2
    • 3
  • g

    Guido Sprenger

    11/21/2022, 4:06 PM
    Hi, why is the PactVerfier trying to get the pacts from the wrong path here? My PactBroker is running at "https://foo.bar.cloudapp.azure.com/pactiobroker" and I configured the brokerBaseUri in my pact-net test to that exact path. Why is it doubling the "/pactiobroker" part in the request?
    m
    • 2
    • 7
  • s

    sameena syed

    11/30/2022, 7:29 AM
    Hi im trying to implement pact net for our project, for publish pact im using docker cli n pact broker docker image but it always throwing me the file doesnt exist eventhough the pact file exists. could someone please help me what i am missing here I am using CLI as below
    Copy code
    docker run --rm -e PACT_BROKER_BASE_URL pactfoundation/pact-cli:latest publish C:\Users\sasye\RiderProjects\pact-workshop-dotnet-core-v3\pacts\ApiClient-ProductService.json --consumer-app-version 1.0.0
    
    Specified pact file 'C:/Users/sasye/RiderProjects/pact-workshop-dotnet-core-v3/pacts/ApiClient-ProductService.json' does not exist. This sometimes indicates one of the arguments has been specified with the wrong name and has been incorrectly identified as a file path.
  • m

    Matt (pactflow.io / pact-js / pact-go)

    11/30/2022, 7:46 AM
    You need to volume mount your local file system into docker. Remember that command is running inside the container, which has its own file system.
    s
    • 2
    • 1
  • s

    sameena syed

    11/30/2022, 2:27 PM
    when i try to publish my pact file its giving me a TCP error, can someone help me understand why its looking at 443 port
    Copy code
    I am publishing as below
    
    docker run --rm -v C:/Users/sasye/RiderProjects/pact-workshop-dotnet-core-v3/pacts:/data pactfoundation/pact-cli:latest pact-broker publish /data --broker-base-url <http://172.21.106.96:9292> --consumer-app-version 1.0.0
    
    Error
    
    /usr/lib/ruby/3.0.0/net/http.rb:987:in `initialize': Failed to open TCP connection to localhost:443 (Address not available - connect(2) for "localhost" port 443) (Errno::EADDRNOTAVAIL)
    m
    • 2
    • 2
  • k

    Kris Akins

    12/05/2022, 10:03 PM
    Hm, I just pulled a branch of mine that had one very simple contract test working. Now I'm getting this when running the Producer test
    Copy code
    Message: 
    System.Net.HttpListenerException : The process cannot access the file because it is being used by another process.
    
      Stack Trace: 
    HttpListener.AddPrefixCore(String registeredPrefix)
    HttpListener.AddAllPrefixes()
    HttpListener.Start()
    MessagingProvider.Start(JsonSerializerSettings settings)
    PactVerifier.MessagingProvider(String providerName, JsonSerializerSettings settings)
    I originally thought that the access error is related to my pact file being used by some other process, but I don't know what that'd be. Also, I don't know why this is just now failing 🤔
    Copy code
    .WithFileSource(new FileInfo(pactPath))
    • 1
    • 3
  • k

    Kris Akins

    12/05/2022, 10:04 PM
    I was on version 4.0, upgraded to 4.3 just now with no difference.
  • k

    Kris Akins

    12/05/2022, 10:04 PM
    Basically following this example: https://github.com/pact-foundation/pact-net/blob/master/docs/messaging-pacts.md
  • g

    GitHub

    12/07/2022, 8:21 PM
    The GitHub user bethesque has signed out. Use the following command/s to recreate subscriptions /github subscribe pact-foundation/pact-net
  • b

    Beth (pactflow.io/Pact Broker/pact-ruby)

    12/08/2022, 12:34 AM
    /github subscribe pact-foundation/pact-net
  • s

    sameena syed

    12/12/2022, 7:47 AM
    Hi Im trying to do events pact with pactNet when I run on mac no issues its working but when I try to run the same code on windows its giving error with some HTTPListener exception but when i check for the port where the server is started there are no process running on it. can someone let me know whats going wrong
    Copy code
    System.Net.HttpListenerException: The process cannot access the file because it is being used by another process.
    
    System.Net.HttpListenerException
    The process cannot access the file because it is being used by another process.
       at System.Net.HttpListener.AddPrefixCore(String registeredPrefix)
       at System.Net.HttpListener.AddAllPrefixes()
       at System.Net.HttpListener.Start()
       at PactNet.Verifier.Messaging.MessagingProvider.Start(JsonSerializerSettings settings)
       at PactNet.Verifier.PactVerifier.MessagingProvider(String providerName, JsonSerializerSettings settings)
       at Provider.Tests.StockEventGeneratorTests.EnsureEventApiHonoursPactWithConsumer() in C:\Users\sasye\Downloads\pactnetevents\Provider.Tests\StockEventGeneratorTests.cs:line 52
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
       at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
    
    
    
    Starting messaging provider at <http://localhost:49152/pact-messages/>
  • j

    Jonatan Jaworski

    12/15/2022, 11:43 PM
    Hi - Does anyone know if Pactnet can be used for provider tests with old Dotnet Framework (i.e: not core, or dotnet5/6/7)? Especially considering the hosting aspect of the verification. I'm sure this question might have been asked before, if so it'd be good to add this as a requirement in the readme file in Github.
  • f

    Fábio Rodrigues

    01/03/2023, 4:54 PM
    Hello all, does pact-net currently allows us to call a pact-plugin. For example, imagine that for whatever reason i wanted to use the csv example plugin with pact-net. Would i be able to define that the plugin is necessary and the test (both consumer and provider) be able to use that plugin?
  • g

    GitHub

    01/05/2023, 4:35 PM
    #436 Build Breaks when using pactnet packages with a space in the home path Issue created by ronjonesjr PactNet.Linux.x64.targets includes the following lines: When MSBuildThisFileDirectory points to a directory with spaces in it, these lines fail. For example, move your home directory on macOS to a volume with a space in the name (e.g. "Archive Disk"). Then the path to your nuget packages has a space /Volumes/Archive Disk/username/.nuget/packages/pactnet.linux.x64/3.0.2/build/PactNet.Linux.x64.targets" and your build output will show the error... chmod: /Volumes/Archive: No such file or directory chmod: Disk/username/.nuget/packages/pactnet.linux.x64/3.0.2/build/../tools/pact-linux-x86_64/bin/pact-mock-service: No such file or directory pact-foundation/pact-net
    • 1
    • 1
  • g

    GitHub

    01/05/2023, 5:19 PM
    1 new commit pushed to
    <https://github.com/pact-foundation/pact-net/tree/master|master>
    by adamrodger
    <https://github.com/pact-foundation/pact-net/commit/fa0f8a097bad722b195c4bd5b00e111cb68e3f0f|fa0f8a09>
    - docs: Clarify that the 3.x series is deprecated pact-foundation/pact-net
  • g

    GitHub

    01/05/2023, 5:46 PM
    #430 chore(deps): bump Newtonsoft.Json from 10.0.3 to 13.0.2 in /samples/Messaging/Consumer.Tests Pull request opened by dependabot[bot] Bumps Newtonsoft.Json from 10.0.3 to 13.0.2. Release notes Sourced from Newtonsoft.Json's releases.
    13.0.2
    • New feature - Add support for DateOnly and TimeOnly
    • New feature - Add UnixDateTimeConverter.AllowPreEpoch property
    • New feature - Add copy constructor to JsonSerializerSettings
    • New feature - Add JsonCloneSettings with property to disable copying annotations
    • Change - Add nullable annotation to JToken.ToObject(Type, JsonSerializer)
    • Change - Reduced allocations by reusing boxed values
    • Fix - Fixed MaxDepth when used with ToObject inside of a JsonConverter
    • Fix - Fixed deserializing mismatched JToken types in properties
    • Fix - Fixed merging enumerable content and validate content
    • Fix - Fixed using $type with arrays of more than two dimensions
    • Fix - Fixed rare race condition in name table when deserializing on device with ARM processors
    • Fix - Fixed deserializing via constructor with ignored base type properties
    • Fix - Fixed MaxDepth not being used with ISerializable deserialization
    13.0.1
    • New feature - Add JsonSelectSettings with configuration for a regex timeout
    • Change - Remove portable assemblies from NuGet package
    • Change - JsonReader and JsonSerializer MaxDepth defaults to 64
    • Change - Change InvalidCastException to JsonSerializationException on mismatched JToken
    • Fix - Fixed throwing missing member error on ignored fields
    • Fix - Fixed various nullable annotations
    • Fix - Fixed annotations not being copied when tokens are cloned
    • Fix - Fixed naming strategy not being used when deserializing dictionary enum keys
    • Fix - Fixed serializing nullable struct dictionaries
    • Fix - Fixed JsonWriter.WriteToken to allow null with string token
    • Fix - Fixed missing error when deserializing JToken with a contract type mismatch
    • Fix - Fixed JTokenWriter when writing comment to an object
    12.0.3
    • New feature - Added support for nullable reference types
    • New feature - Added KebabCaseNamingStrategy
    • Change - Package now uses embedded package icon
    • Fix - Fixed bug when merging JToken with itself
    • Fix - Fixed performance of calling ICustomTypeDescriptor.GetProperties
    • Fix - Fixed serializing Enumerable.Empty and empty arrays on .NET Core 3.0
    • Fix - Fixed deserializing some collection types with constructor
    • Fix - Fixed deserializing IImmutableSet to ImmutableHashSet instead of ImmutableSortedSet
    • Fix - Fixed deserializing IImmutableDictionary to ImmutableDictionary instead of ImmutableSortedDictionary
    • Fix - Fixed deserializing into constructors with more than 256 parameters
    • Fix - Fixed hang when deserializing JTokenReader with preceding comment
    • Fix - Fixed JSONPath scanning with nested indexer
    • Fix - Fixed deserializing incomplete JSON object to JObject
    • Fix - Fixed using StringEnumConverter with naming strategy and specified values
    12.0.2
    • New feature - Added MissingMemberHandling to JsonObjectAttribute and JsonObjectContract
    • New feature - Added constructor to JTokenReader to specify initial path
    • New feature - Added JsonProperty.IsRequiredSpecified
    • New feature - Added JsonContract.InternalConverter
    ... (truncated) Commits • `4fba53a` Remove prerelease for 13.0.2 • `b15df4b` Add missing headers • `789bfd3` Update to 13.0.2-beta3 • `b13717a` Add JsonCloneSettings to disable copy annotations (#2757) • `d0a328e` Fix MaxDepth not being used with ISerializable deserialization (#2736) • `aae9284` Update SDK • `bd98970` Update to 13.0.2-beta2 • `4dc9af6` Add roll forward to global.json (#2726) • `b8f4ef0` Fixing misspelling (#2698) • `cb9eed9` Fix deserializing via constructor with ignored base type properties (#2711) • Additional commits viewable in compare view Dependabot compatibility score Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
    @dependabot rebase
    . * * * Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: •
    @dependabot rebase
    will rebase this PR •
    @dependabot recreate
    will recreate this PR, overwriting any edits that have been made to it •
    @dependabot merge
    will merge this PR after your CI passes on it •
    @dependabot squash and merge
    will squash and merge this PR after your CI passes on it •
    @dependabot cancel merge
    will cancel a previously requested merge and block automerging •
    @dependabot reopen
    will reopen this PR if it is closed •
    @dependabot close
    will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually •
    @dependabot ignore this major version
    will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) •
    @dependabot ignore this minor version
    will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) •
    @dependabot ignore this dependency
    will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) •
    @dependabot use these labels
    will set the current labels as the default for future PRs for this repo and language •
    @dependabot use these reviewers
    will set the current reviewers as the default for future PRs for this repo and language •
    @dependabot use these assignees
    will set the current assignees as the default for future PRs for this repo and language •
    @dependabot use this milestone
    will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the Security Alerts page. pact-foundation/pact-net GitHub Actions: release GitHub Actions: release GitHub Actions: Build and Test (dotnet) (macos-latest) GitHub Actions: Build and Test (dotnet) (ubuntu-latest) GitHub Actions: Build and Test (dotnet) (windows-latest) GitHub Actions: Build and Test (dotnet) (macos-latest) GitHub Actions: Build and Test (dotnet) (ubuntu-latest) GitHub Actions: Build and Test (dotnet) (windows-latest) ✅ 1 other check has passed 1/9 successful checks
    • 1
    • 1
  • g

    GitHub

    01/05/2023, 5:47 PM
    #429 chore(deps): bump Newtonsoft.Json from 10.0.3 to 13.0.2 in /samples/Messaging/Consumer Pull request opened by dependabot[bot] Bumps Newtonsoft.Json from 10.0.3 to 13.0.2. Release notes Sourced from Newtonsoft.Json's releases.
    13.0.2
    • New feature - Add support for DateOnly and TimeOnly
    • New feature - Add UnixDateTimeConverter.AllowPreEpoch property
    • New feature - Add copy constructor to JsonSerializerSettings
    • New feature - Add JsonCloneSettings with property to disable copying annotations
    • Change - Add nullable annotation to JToken.ToObject(Type, JsonSerializer)
    • Change - Reduced allocations by reusing boxed values
    • Fix - Fixed MaxDepth when used with ToObject inside of a JsonConverter
    • Fix - Fixed deserializing mismatched JToken types in properties
    • Fix - Fixed merging enumerable content and validate content
    • Fix - Fixed using $type with arrays of more than two dimensions
    • Fix - Fixed rare race condition in name table when deserializing on device with ARM processors
    • Fix - Fixed deserializing via constructor with ignored base type properties
    • Fix - Fixed MaxDepth not being used with ISerializable deserialization
    13.0.1
    • New feature - Add JsonSelectSettings with configuration for a regex timeout
    • Change - Remove portable assemblies from NuGet package
    • Change - JsonReader and JsonSerializer MaxDepth defaults to 64
    • Change - Change InvalidCastException to JsonSerializationException on mismatched JToken
    • Fix - Fixed throwing missing member error on ignored fields
    • Fix - Fixed various nullable annotations
    • Fix - Fixed annotations not being copied when tokens are cloned
    • Fix - Fixed naming strategy not being used when deserializing dictionary enum keys
    • Fix - Fixed serializing nullable struct dictionaries
    • Fix - Fixed JsonWriter.WriteToken to allow null with string token
    • Fix - Fixed missing error when deserializing JToken with a contract type mismatch
    • Fix - Fixed JTokenWriter when writing comment to an object
    12.0.3
    • New feature - Added support for nullable reference types
    • New feature - Added KebabCaseNamingStrategy
    • Change - Package now uses embedded package icon
    • Fix - Fixed bug when merging JToken with itself
    • Fix - Fixed performance of calling ICustomTypeDescriptor.GetProperties
    • Fix - Fixed serializing Enumerable.Empty and empty arrays on .NET Core 3.0
    • Fix - Fixed deserializing some collection types with constructor
    • Fix - Fixed deserializing IImmutableSet to ImmutableHashSet instead of ImmutableSortedSet
    • Fix - Fixed deserializing IImmutableDictionary to ImmutableDictionary instead of ImmutableSortedDictionary
    • Fix - Fixed deserializing into constructors with more than 256 parameters
    • Fix - Fixed hang when deserializing JTokenReader with preceding comment
    • Fix - Fixed JSONPath scanning with nested indexer
    • Fix - Fixed deserializing incomplete JSON object to JObject
    • Fix - Fixed using StringEnumConverter with naming strategy and specified values
    12.0.2
    • New feature - Added MissingMemberHandling to JsonObjectAttribute and JsonObjectContract
    • New feature - Added constructor to JTokenReader to specify initial path
    • New feature - Added JsonProperty.IsRequiredSpecified
    • New feature - Added JsonContract.InternalConverter
    ... (truncated) Commits • `4fba53a` Remove prerelease for 13.0.2 • `b15df4b` Add missing headers • `789bfd3` Update to 13.0.2-beta3 • `b13717a` Add JsonCloneSettings to disable copy annotations (#2757) • `d0a328e` Fix MaxDepth not being used with ISerializable deserialization (#2736) • `aae9284` Update SDK • `bd98970` Update to 13.0.2-beta2 • `4dc9af6` Add roll forward to global.json (#2726) • `b8f4ef0` Fixing misspelling (#2698) • `cb9eed9` Fix deserializing via constructor with ignored base type properties (#2711) • Additional commits viewable in compare view Dependabot compatibility score Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
    @dependabot rebase
    . * * * Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: •
    @dependabot rebase
    will rebase this PR •
    @dependabot recreate
    will recreate this PR, overwriting any edits that have been made to it •
    @dependabot merge
    will merge this PR after your CI passes on it •
    @dependabot squash and merge
    will squash and merge this PR after your CI passes on it •
    @dependabot cancel merge
    will cancel a previously requested merge and block automerging •
    @dependabot reopen
    will reopen this PR if it is closed •
    @dependabot close
    will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually •
    @dependabot ignore this major version
    will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) •
    @dependabot ignore this minor version
    will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) •
    @dependabot ignore this dependency
    will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) •
    @dependabot use these labels
    will set the current labels as the default for future PRs for this repo and language •
    @dependabot use these reviewers
    will set the current reviewers as the default for future PRs for this repo and language •
    @dependabot use these assignees
    will set the current assignees as the default for future PRs for this repo and language •
    @dependabot use this milestone
    will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the Security Alerts page. pact-foundation/pact-net GitHub Actions: release GitHub Actions: release GitHub Actions: Build and Test (dotnet) (macos-latest) GitHub Actions: Build and Test (dotnet) (ubuntu-latest) GitHub Actions: Build and Test (dotnet) (macos-latest) GitHub Actions: Build and Test (dotnet) (windows-latest) GitHub Actions: Build and Test (dotnet) (ubuntu-latest) GitHub Actions: Build and Test (dotnet) (windows-latest) ✅ 1 other check has passed 1/9 successful checks
    • 1
    • 1
  • g

    GitHub

    01/05/2023, 5:47 PM
    #428 chore(deps): bump Newtonsoft.Json from 10.0.3 to 13.0.2 in /samples/EventApi/Consumer Pull request opened by dependabot[bot] Bumps Newtonsoft.Json from 10.0.3 to 13.0.2. Release notes Sourced from Newtonsoft.Json's releases.
    13.0.2
    • New feature - Add support for DateOnly and TimeOnly
    • New feature - Add UnixDateTimeConverter.AllowPreEpoch property
    • New feature - Add copy constructor to JsonSerializerSettings
    • New feature - Add JsonCloneSettings with property to disable copying annotations
    • Change - Add nullable annotation to JToken.ToObject(Type, JsonSerializer)
    • Change - Reduced allocations by reusing boxed values
    • Fix - Fixed MaxDepth when used with ToObject inside of a JsonConverter
    • Fix - Fixed deserializing mismatched JToken types in properties
    • Fix - Fixed merging enumerable content and validate content
    • Fix - Fixed using $type with arrays of more than two dimensions
    • Fix - Fixed rare race condition in name table when deserializing on device with ARM processors
    • Fix - Fixed deserializing via constructor with ignored base type properties
    • Fix - Fixed MaxDepth not being used with ISerializable deserialization
    13.0.1
    • New feature - Add JsonSelectSettings with configuration for a regex timeout
    • Change - Remove portable assemblies from NuGet package
    • Change - JsonReader and JsonSerializer MaxDepth defaults to 64
    • Change - Change InvalidCastException to JsonSerializationException on mismatched JToken
    • Fix - Fixed throwing missing member error on ignored fields
    • Fix - Fixed various nullable annotations
    • Fix - Fixed annotations not being copied when tokens are cloned
    • Fix - Fixed naming strategy not being used when deserializing dictionary enum keys
    • Fix - Fixed serializing nullable struct dictionaries
    • Fix - Fixed JsonWriter.WriteToken to allow null with string token
    • Fix - Fixed missing error when deserializing JToken with a contract type mismatch
    • Fix - Fixed JTokenWriter when writing comment to an object
    12.0.3
    • New feature - Added support for nullable reference types
    • New feature - Added KebabCaseNamingStrategy
    • Change - Package now uses embedded package icon
    • Fix - Fixed bug when merging JToken with itself
    • Fix - Fixed performance of calling ICustomTypeDescriptor.GetProperties
    • Fix - Fixed serializing Enumerable.Empty and empty arrays on .NET Core 3.0
    • Fix - Fixed deserializing some collection types with constructor
    • Fix - Fixed deserializing IImmutableSet to ImmutableHashSet instead of ImmutableSortedSet
    • Fix - Fixed deserializing IImmutableDictionary to ImmutableDictionary instead of ImmutableSortedDictionary
    • Fix - Fixed deserializing into constructors with more than 256 parameters
    • Fix - Fixed hang when deserializing JTokenReader with preceding comment
    • Fix - Fixed JSONPath scanning with nested indexer
    • Fix - Fixed deserializing incomplete JSON object to JObject
    • Fix - Fixed using StringEnumConverter with naming strategy and specified values
    12.0.2
    • New feature - Added MissingMemberHandling to JsonObjectAttribute and JsonObjectContract
    • New feature - Added constructor to JTokenReader to specify initial path
    • New feature - Added JsonProperty.IsRequiredSpecified
    • New feature - Added JsonContract.InternalConverter
    ... (truncated) Commits • `4fba53a` Remove prerelease for 13.0.2 • `b15df4b` Add missing headers • `789bfd3` Update to 13.0.2-beta3 • `b13717a` Add JsonCloneSettings to disable copy annotations (#2757) • `d0a328e` Fix MaxDepth not being used with ISerializable deserialization (#2736) • `aae9284` Update SDK • `bd98970` Update to 13.0.2-beta2 • `4dc9af6` Add roll forward to global.json (#2726) • `b8f4ef0` Fixing misspelling (#2698) • `cb9eed9` Fix deserializing via constructor with ignored base type properties (#2711) • Additional commits viewable in compare view Dependabot compatibility score Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
    @dependabot rebase
    . * * * Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: •
    @dependabot rebase
    will rebase this PR •
    @dependabot recreate
    will recreate this PR, overwriting any edits that have been made to it •
    @dependabot merge
    will merge this PR after your CI passes on it •
    @dependabot squash and merge
    will squash and merge this PR after your CI passes on it •
    @dependabot cancel merge
    will cancel a previously requested merge and block automerging •
    @dependabot reopen
    will reopen this PR if it is closed •
    @dependabot close
    will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually •
    @dependabot ignore this major version
    will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) •
    @dependabot ignore this minor version
    will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) •
    @dependabot ignore this dependency
    will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) •
    @dependabot use these labels
    will set the current labels as the default for future PRs for this repo and language •
    @dependabot use these reviewers
    will set the current reviewers as the default for future PRs for this repo and language •
    @dependabot use these assignees
    will set the current assignees as the default for future PRs for this repo and language •
    @dependabot use this milestone
    will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the Security Alerts page. pact-foundation/pact-net GitHub Actions: release GitHub Actions: release GitHub Actions: Build and Test (dotnet) (macos-latest) GitHub Actions: Build and Test (dotnet) (ubuntu-latest) GitHub Actions: Build and Test (dotnet) (windows-latest) GitHub Actions: Build and Test (dotnet) (macos-latest) GitHub Actions: Build and Test (dotnet) (ubuntu-latest) GitHub Actions: Build and Test (dotnet) (windows-latest) ✅ 1 other check has passed 1/9 successful checks
    • 1
    • 1
12345...9Latest