platformplatform / PlatformPlatform

Alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
https://platformplatform.github.io
MIT License
253 stars 26 forks source link

Support sending and receive strongly typed IDs as strings to rest endpoints #604

Closed raix closed 2 weeks ago

raix commented 3 weeks ago

Strongly typed IDs in REST queries are sent as objects like:

{
    "id": {
        "value": "prefix_1234567890"
    ]
}

The same is true when POST, UPDATE, or PUT endpoints receive a strongly typed ID.

The goal should be to send and receive strongly typed IDs as strings:

{
    "id": "prefix_1234567890"
}
linear[bot] commented 3 weeks ago

PP-221 [Bug]: StronglyTypedId is not serialized when sent to the client