agentleFS
StripeKnown publisherstripe/stripe-dotnet/.github/copilot-instructions.md

stripe-dotnet

Copilot instructions1.5k starsChanged 2 months agoApache-2.0View on GitHub

Stripe.net supports both Newtonsoft.Json and System.Text.Json, and integrators may serialize SDK objects (for example, to put an EventNotification on a queue) and deserialize them later. Both libraries silently skip properties they can't set. A type like this serializes fine but deserializes into an empty object, with no error. - Expect a test that serializes and deserializes the type with both libraries and asserts that the values survive. Don't rely on the wholesome tests in src/StripeTests/Wholesome/ for this: the converter checks…

Trending

Quiet since July.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the stripe/stripe-dotnet repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about stripe/stripe-dotnet

The biggest 5 of 64 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 64

Talked about on GitHub and Stack Overflow (64 times).

On GitHub · 50

45 more on GitHub

On Stack Overflow · 14

9 more on Stack Overflow

The file

Files
copilot-instructions.md

Copilot Code Review Instructions

JSON serialization

Stripe.net supports both Newtonsoft.Json and System.Text.Json, and integrators may serialize SDK objects (for example, to put an EventNotification on a queue) and deserialize them later.

  • Check that new or changed types in the serialization path round-trip through both libraries. This applies to any type used as a property of a serialized object, including types that don't derive from StripeEntity (such as EventNotification and the types of its properties). Flag a type if both of these are true:

    • Its state can't be set during deserialization: properties are getter-only or have non-public setters, or the state is only set through a constructor that takes arguments.
    • It has neither a [JsonConverter] for both libraries (Newtonsoft.Json.JsonConverter and System.Text.Json.Serialization.JsonConverter) nor a constructor that both libraries can use to set that state.

    Both libraries silently skip properties they can't set. A type like this serializes fine but deserializes into an empty object, with no error.

  • Expect a test that serializes and deserializes the type with both libraries and asserts that the values survive. Don't rely on the wholesome tests in src/StripeTests/Wholesome/ for this: the converter checks there only scan StripeEntity subclasses and INestedOptions classes.
  • If a type's JSON shape changes, check that the previous shape can still be read, since payloads written by earlier versions may already be stored.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.