JsonApiDotNetCore icon indicating copy to clipboard operation
JsonApiDotNetCore copied to clipboard

Add tests for submitting meta

Open bkoelman opened this issue 1 year ago • 5 comments

There is no test coverage for sending meta in request bodies.

For example:

POST /api/people HTTP/1.1

{
  "data": {
    "type": "people",
    "attributes": {
      "firstName": "John",
      "lastName": "Doe"
    }
  },
  "meta": {
    "root": {
      "child": {
        "key-A": "value-A",
        "key-B": "value-B"
      }
    }
  }
}

bkoelman avatar Mar 15 '24 16:03 bkoelman

Hi @bkoelman Can I work on this issue!, I am very beginner to open contribute if, I can work on this issue can u please give me more details

Jeeva7RP-DevEng avatar Mar 03 '25 16:03 Jeeva7RP-DevEng

Hello @Jeeva7RP-DevEng, thanks for offering your help.

I've added the basic boilerplate to get you started in https://github.com/json-api-dotnet/JsonApiDotNetCore/commit/cd9fa5080b4ac77f45a0f31298870f737828b44f. It contains a TODO comment to give some ideas on what to test. To set up your local development environment, see https://github.com/json-api-dotnet/JsonApiDotNetCore?tab=readme-ov-file#development.

I'm about to go on vacation, so I won't be able to respond for the next two weeks.

bkoelman avatar Mar 03 '25 21:03 bkoelman

Hi @bkoelman this issue is already closed?

mrmarcosmagalhaes avatar Jul 12 '25 12:07 mrmarcosmagalhaes

@mrmarcosmagalhaes No, would you like to contribute a PR?

bkoelman avatar Jul 12 '25 12:07 bkoelman

Yes, the project looks interesting

mrmarcosmagalhaes avatar Jul 12 '25 12:07 mrmarcosmagalhaes