Skip to content

OpenAPI format for type IDs #45

@Le0Developer

Description

@Le0Developer

We currently use an OpenAPI schema like this for TypeID:

"schema": {
    "type": "string",
    "pattern": "^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$",
    "example": "user_01jv1sm13xf02v44y3j8b66d7k",
    "format": "typeid"
}

As you can see, there's no field for the prefix ("user") that can be programmatically consumed (without parsing the pattern/example).
So I'm wondering, what would the field for that be? x-typeid-prefix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions