zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

RESTful API Handler incorrectly returning id as number if model is typed as number

Open sw34 opened this issue 4 months ago • 0 comments

Description and expected behavior According to the JSON:API spec, id MUST always be a string. My model has an id typed as Int for backwards compatibility with older projects. I have an older project written in C# that I am trying to call the rest api using a JSON:API Deserializer that is failing because of this.

from https://jsonapi.org/format/#document-resource-object-identification The values of the id, type, and lid members MUST be strings.

Environment (please complete the following information):

  • ZenStack version: [e.g., 2.18.0]

sw34 avatar Aug 25 '25 19:08 sw34