feat(vet_app): add x-autocomplete annotations to schema fields

- Add x-autocomplete annotations to all qualifying string fields:
  - token: Pet.name, Parent.name, Vet.name, Vet.specialty, Treatment.label, Procedure.name
  - text: Treatment.description, Appointment.notes, Procedure.description
  - email: Parent.email, Vet.email
  - phone: Parent.phone, Vet.phone
This commit is contained in:
2026-07-13 03:22:12 +05:30
parent a417563ab5
commit 3da419fed5

View File

@@ -31,10 +31,12 @@ components:
type: string
x-order: 1
x-label: "Procedure Name"
x-autocomplete: token
description:
type: string
x-order: 2
x-label: "Description"
x-autocomplete: text
cost:
type: number
format: float
@@ -223,6 +225,7 @@ components:
x-description: "Parent's full name"
x-filterable: true
x-sortable: true
x-autocomplete: token
email:
type: string
format: email
@@ -230,12 +233,14 @@ components:
x-label: "Email"
x-description: "Email address"
x-filterable: true
x-autocomplete: email
phone:
type: string
x-order: 3
x-label: "Phone"
x-description: "Contact phone number"
x-filterable: true
x-autocomplete: phone
metadata:
$ref: '#/components/schemas/Metadata'
x-order: 4
@@ -261,12 +266,14 @@ components:
x-description: "Veterinarian's full name"
x-filterable: true
x-sortable: true
x-autocomplete: token
specialty:
type: string
x-order: 2
x-label: "Specialty"
x-description: "Area of specialization"
x-filterable: true
x-autocomplete: token
email:
type: string
format: email
@@ -274,11 +281,13 @@ components:
x-label: "Email"
x-description: "Email address"
x-filterable: true
x-autocomplete: email
phone:
type: string
x-order: 4
x-label: "Phone"
x-description: "Contact phone number"
x-autocomplete: phone
metadata:
$ref: '#/components/schemas/Metadata'
x-order: 5
@@ -304,11 +313,13 @@ components:
x-description: "Name of the treatment"
x-filterable: true
x-sortable: true
x-autocomplete: token
description:
type: string
x-order: 2
x-label: "Description"
x-description: "Detailed description of the treatment"
x-autocomplete: text
metadata:
$ref: '#/components/schemas/Metadata'
x-order: 4
@@ -334,6 +345,7 @@ components:
x-description: "Name of the pet"
x-filterable: true
x-sortable: true
x-autocomplete: token
species:
type: string
enum: [dog, cat, bird]
@@ -410,6 +422,7 @@ components:
x-order: 2
x-label: "Notes"
x-description: "Any additional notes"
x-autocomplete: text
procedures:
type: array
items: