Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support blank identifiers, assume transient #4448

Closed
khvn26 opened this issue Aug 2, 2024 · 0 comments · Fixed by #4449
Closed

Support blank identifiers, assume transient #4448

khvn26 opened this issue Aug 2, 2024 · 0 comments · Fixed by #4449
Assignees

Comments

@khvn26
Copy link
Member

khvn26 commented Aug 2, 2024

Contributes to #4278.

Evolve the API schemas as per the following:

POST /api/v1/identities (docs):

#/definitions/IdentifyWithTraits

{
    "required": [
        "identifier"
    ],
    "type": "object",
    "properties": {
        "identifier": {
            "title": "Identifier",
+           "x-nullable": true,
            "type": "string",
-           "minLength": 1
        },
        "traits": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/TraitSerializerBasic"
            }
        },
        "flags": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/SDKFeatureState"
            },
            "readOnly": true
         },
         "transient": {
             "type": "boolean",
             "x-nullable": true
        }
    }
}

If null/empty identifier provided, assume "transient": true. Supply identifier="" to the evaluation engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant