6 Commits

Author SHA1 Message Date
7d075b3904 bumped up version
All checks were successful
continuous-integration/drone Build is passing
2026-07-17 12:52:51 +05:30
28c6d9e964 if no ffilterable but autocomplete, thriw error 2026-07-13 04:17:59 +05:30
628c3e97f5 if no ffilterable but autocomplete, thriw error 2026-07-13 04:14:42 +05:30
4bf358734a filterable treatment description 2026-07-13 04:01:50 +05:30
f5b3c2bb11 removed - from phone number 2026-07-13 03:24:05 +05:30
3da419fed5 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
2026-07-13 03:22:12 +05:30
3 changed files with 18 additions and 8 deletions

View File

@@ -315,15 +315,15 @@ def _seed_data():
global _parents_next_id, _vets_next_id, _treatments_next_id
global _pets_next_id, _appointments_next_id
_parents[1] = Parent(id=1, name="Alice Johnson", email="alice@example.com", phone="555-0101", metadata=meta)
_parents[2] = Parent(id=2, name="Bob Smith", email="bob@example.com", phone="555-0102", metadata=meta)
_parents[3] = Parent(id=3, name="Carol Williams", email="carol@example.com", phone="555-0103", metadata=meta)
_parents[4] = Parent(id=4, name="Dave Brown", email="dave@example.com", phone="555-0104", metadata=meta)
_parents[1] = Parent(id=1, name="Alice Johnson", email="alice@example.com", phone="5550101", metadata=meta)
_parents[2] = Parent(id=2, name="Bob Smith", email="bob@example.com", phone="5550102", metadata=meta)
_parents[3] = Parent(id=3, name="Carol Williams", email="carol@example.com", phone="5550103", metadata=meta)
_parents[4] = Parent(id=4, name="Dave Brown", email="dave@example.com", phone="5550104", metadata=meta)
_parents_next_id = 5
_vets[1] = Vet(id=1, name="Sarah Connor", specialty="Surgery", email="sarah@clinic.com", phone="555-0201", metadata=meta)
_vets[2] = Vet(id=2, name="James Wilson", specialty="Dentistry", email="james@clinic.com", phone="555-0202", metadata=meta)
_vets[3] = Vet(id=3, name="Emily Davis", specialty="General Practice", email="emily@clinic.com", phone="555-0203", metadata=meta)
_vets[1] = Vet(id=1, name="Sarah Connor", specialty="Surgery", email="sarah@clinic.com", phone="5550201", metadata=meta)
_vets[2] = Vet(id=2, name="James Wilson", specialty="Dentistry", email="james@clinic.com", phone="5550202", metadata=meta)
_vets[3] = Vet(id=3, name="Emily Davis", specialty="General Practice", email="emily@clinic.com", phone="5550203", metadata=meta)
_vets_next_id = 4
_treatments[1] = Treatment(id=1, label="Annual Checkup", description="Full physical examination", metadata=meta)

View File

@@ -223,6 +223,7 @@ components:
x-description: "Parent's full name"
x-filterable: true
x-sortable: true
x-autocomplete: token
email:
type: string
format: email
@@ -230,12 +231,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 +264,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,6 +279,7 @@ components:
x-label: "Email"
x-description: "Email address"
x-filterable: true
x-autocomplete: email
phone:
type: string
x-order: 4
@@ -304,11 +310,14 @@ 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-filterable: true
x-autocomplete: text
metadata:
$ref: '#/components/schemas/Metadata'
x-order: 4
@@ -334,6 +343,7 @@ components:
x-description: "Name of the pet"
x-filterable: true
x-sortable: true
x-autocomplete: token
species:
type: string
enum: [dog, cat, bird]

View File

@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "openapi-first"
version = "0.0.4"
version = "0.0.5"
description = "Strict OpenAPI-first application bootstrap for FastAPI."
readme = "README.md"
requires-python = ">=3.10"