zenstack
zenstack copied to clipboard
RESTful API Handler incorrectly returning id as number if model is typed as number
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]