jsonapi-react icon indicating copy to clipboard operation
jsonapi-react copied to clipboard

Serialize non camelcased properties?

Open stobias123 opened this issue 3 years ago • 0 comments

I have the below interface and jsonapi response snippet.

I need to serialize the property as shown into the camelcased property in the interface.

Is there some field in schema that I can set to define the camelcased attribute? Do I need to use mutations? Any pointers would be helpful. Thanks!

export interface Plan {
  logReadURL: string;
}

// This json response
{
  ....
  "log-read-url": "foooooo"
}

stobias123 avatar Jul 03 '22 18:07 stobias123