Enum value `1` does not respect the specified type `string`

Enum value 1 does not respect the specified type string

CreateCardReq:
      title: CreateReq
      type: object
      properties:
        patientType:
          type: integer
          enum:
            - 0
            - 1
          description: create card request

but demo in docs says it’s correct