Create a unique identifier (id) in the schema

I used the code below to generate a unique ID, but apparently it is not supported, is there a way to generate a unique ID in schema?

type: string
format: uuid